浏览代码

Missing diff from previous commit.

Frank Zago 16 年之前
父节点
当前提交
facb984654
共有 1 个文件被更改,包括 3 次插入5 次删除
  1. 3 5
      mapHandler.cpp

+ 3 - 5
mapHandler.cpp

@@ -477,11 +477,9 @@ void CMapHandler::init()
 	timeHandler th;
 	timeHandler th;
 	th.getDif();
 	th.getDif();
 
 
-	// Size of visible terrain. TODO: change settings.txt to add that
-	// infor and remove the old stuff in conf file (tilesW, tileH,
-	// TrimX, TrimY)
-	mapW = conf.go()->ac.tilesW * 32 - conf.go()->ac.advmapTrimX;
-	mapH = conf.go()->ac.tilesH * 32 - conf.go()->ac.advmapTrimY;
+	// Size of visible terrain.
+	mapW = conf.go()->ac.advmapW;
+	mapH = conf.go()->ac.advmapH;
 
 
 	// Total number of visible tiles. Substract the center tile, then
 	// Total number of visible tiles. Substract the center tile, then
 	// compute the number of tiles on each side, and reassemble.
 	// compute the number of tiles on each side, and reassemble.