From 2768bc57c1dcdc33a12f2f3fbb73504aa4b9f3f5 Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期六, 10 十一月 2018 15:05:54 +0800
Subject: [PATCH] 3335 代码优化
---
System/MainInterfacePanel/FlyingShoesTask.cs | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/System/MainInterfacePanel/FlyingShoesTask.cs b/System/MainInterfacePanel/FlyingShoesTask.cs
index ce0a913..6f4d306 100644
--- a/System/MainInterfacePanel/FlyingShoesTask.cs
+++ b/System/MainInterfacePanel/FlyingShoesTask.cs
@@ -231,7 +231,7 @@
}
-
+ List<mapnpcConfig> npcConfig = new List<mapnpcConfig>();
private bool StateDetermination()//鐘舵�佸垽瀹�
{
bool _bool = false;
@@ -244,7 +244,11 @@
int mapID = PlayerDatas.Instance.baseData.MapID;
if (int.TryParse(strNpc, out npcId))
{
- var npcConfig = Config.Instance.GetAllValues<mapnpcConfig>();
+ if (npcConfig.Count <= 0)
+ {
+ npcConfig = Config.Instance.GetAllValues<mapnpcConfig>();
+ }
+ // var npcConfig = Config.Instance.GetAllValues<mapnpcConfig>();
foreach (var value in npcConfig)
{
if (value.NPCID == npcId && value.MapID != mapID)
--
Gitblit v1.8.0