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.
This commit is contained in:
parent
8e3f1baddc
commit
a2205eb9fb
@ -219,8 +219,8 @@ void TileGenerator::setGeometry(int x, int y, int w, int h)
|
|||||||
m_reqZMin = (y - 15) / 16;
|
m_reqZMin = (y - 15) / 16;
|
||||||
}
|
}
|
||||||
|
|
||||||
int x2 = x + w;
|
int x2 = x + w - 1;
|
||||||
int y2 = y + h;
|
int y2 = y + h - 1;
|
||||||
|
|
||||||
if (x2 > 0) {
|
if (x2 > 0) {
|
||||||
m_reqXMax = x2 / 16;
|
m_reqXMax = x2 / 16;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user