Преглед на файлове

Merge branch 'master' of http://git.gfggame.com:3000/gfg/client

beiguoxia преди 3 години
родител
ревизия
b7e073ee94
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 2 2
      GameClient/Assets/Game/HotUpdate/Utils/ItemUtil.cs
  2. 1 1
      GameClient/Assets/Game/HotUpdate/Utils/ResPathUtil.cs

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Utils/ItemUtil.cs

@@ -212,9 +212,9 @@ namespace GFGGame
             });
         }
 
-        public static string GetItemResExt(int itemType, int type)
+        public static string GetItemResExt(int itemType, int type, bool isIcon = false)
         {
-            if (itemType == ConstItemType.DRESS_UP && type == ConstDressUpItemType.BEI_JING)
+            if (itemType == ConstItemType.DRESS_UP && type == ConstDressUpItemType.BEI_JING && !isIcon)
             {
                 return "jpg";
             }

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Utils/ResPathUtil.cs

@@ -33,7 +33,7 @@ namespace GFGGame
         }
         public static string GetIconPath(ItemCfg itemCfg)
         {
-            return GetIconPath(itemCfg.res, ItemUtil.GetItemResExt(itemCfg.itemType, itemCfg.subType));
+            return GetIconPath(itemCfg.res, ItemUtil.GetItemResExt(itemCfg.itemType, itemCfg.subType, true));
         }
         public static string GetBgImgPath(string res, string extName = "png")
         {