From 2bfcee1e0ac2fb7a4bfacd552d3a5053c614dccf Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期四, 01 十一月 2018 11:17:22 +0800
Subject: [PATCH] 3335 资源下载优先级别更新。
---
System/Dungeon/DungeonModel.cs | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/System/Dungeon/DungeonModel.cs b/System/Dungeon/DungeonModel.cs
index 73c03ab..83bb073 100644
--- a/System/Dungeon/DungeonModel.cs
+++ b/System/Dungeon/DungeonModel.cs
@@ -550,10 +550,10 @@
}
if (Index > -1)
{
- if (Index + 1 >=7)
+ if (Index + 1 >= 7)
{
- if(7-mainModel.WaHuangHighestFloor>=0)
- mainModel.LayerNumber = 7 - mainModel.WaHuangHighestFloor;
+ if (7 - mainModel.WaHuangHighestFloor >= 0)
+ mainModel.LayerNumber = 7 - mainModel.WaHuangHighestFloor;
}
else
{
@@ -1174,12 +1174,12 @@
public void RequestChallangeDungeon(int _dataMapId, int _lineId)
{
- if (!AssetSource.sceneFromEditor && !AssetVersionUtility.IsUnpriorAssetDownLoadOk())
+ if (!AssetSource.sceneFromEditor)
{
var mapResConfig = DTCA127_tagMCStartChangeMap.GetMapResourcesConfig(_dataMapId, _lineId);
- var assetVersion = AssetVersionUtility.GetAssetVersion(StringUtility.Contact("maps/", mapResConfig.MapResources.ToLower()));
+ var assetValid = AssetVersionUtility.IsAssetValid(StringUtility.Contact("maps/", mapResConfig.MapResources.ToLower()));
- if (assetVersion != null && !assetVersion.IsPriorAsset())
+ if (!assetValid)
{
InGameDownLoad.Instance.TryDownLoad(InGameDownLoad.Dominant.Whole);
return;
--
Gitblit v1.8.0