From facb98465439fb8bba492f1d9d14298887b39be0 Mon Sep 17 00:00:00 2001 From: Frank Zago Date: Sun, 14 Jun 2009 15:14:03 +0000 Subject: [PATCH] Missing diff from previous commit. --- mapHandler.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/mapHandler.cpp b/mapHandler.cpp index 47525c25c..6f2144372 100644 --- a/mapHandler.cpp +++ b/mapHandler.cpp @@ -477,11 +477,9 @@ void CMapHandler::init() timeHandler th; 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 // compute the number of tiles on each side, and reassemble.