Geometry: w and h are the map dimensions

For a 100x100 map, the w and h parameters would have to be
specified as +99+99. This is not intuitive. Changed this,
so that +100+100 results in a 100x100 map.
master
Rogier 2014-03-26 11:51:48 +01:00
parent 8e3f1baddc
commit a2205eb9fb
1 changed files with 2 additions and 2 deletions

View File

@ -219,8 +219,8 @@ void TileGenerator::setGeometry(int x, int y, int w, int h)
m_reqZMin = (y - 15) / 16;
}
int x2 = x + w;
int y2 = y + h;
int x2 = x + w - 1;
int y2 = y + h - 1;
if (x2 > 0) {
m_reqXMax = x2 / 16;