瀏覽代碼

CHeroHandler: remove confusing map

This map should not be used, it does not have values anymore
Konstantin P 2 年之前
父節點
當前提交
c216292f1e
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      lib/CHeroHandler.h

+ 0 - 4
lib/CHeroHandler.h

@@ -248,9 +248,6 @@ class DLL_LINKAGE CHeroHandler : public CHandlerBase<HeroTypeID, HeroType, CHero
 public:
 	CHeroClassHandler classes;
 
-	//default costs of going through terrains. -1 means terrain is impassable
-	std::map<TerrainId, int> terrCosts;
-
 	ui32 level(ui64 experience) const; //calculates level corresponding to given experience amount
 	ui64 reqExp(ui32 level) const; //calculates experience required for given level
 
@@ -271,7 +268,6 @@ public:
 		h & classes;
 		h & objects;
 		h & expPerLevel;
-		h & terrCosts;
 	}
 
 protected: