summaryrefslogtreecommitdiff
path: root/smallmap_gui.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-06-06 17:30:52 +0000
committerDarkvater <darkvater@openttd.org>2005-06-06 17:30:52 +0000
commitb2b0f6f3ce84eb8026ee51eed8d7a46cae3966b9 (patch)
tree059ba90d78efcfa5b5ea6c27ae1b64336b5540a6 /smallmap_gui.c
parent7dd5578477068d832292a4f7cd081cdf2b6eefe1 (diff)
downloadopenttd-b2b0f6f3ce84eb8026ee51eed8d7a46cae3966b9.tar.xz
(svn r2425) - Fix (regression): wrong sprite for level-land cursor (thx Tron)
- CodeChange: change MapSizeX() - 1 to MapMaxX() in the smallmap drawing code
Diffstat (limited to 'smallmap_gui.c')
-rw-r--r--smallmap_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/smallmap_gui.c b/smallmap_gui.c
index 48baba862..6ba0a6228 100644
--- a/smallmap_gui.c
+++ b/smallmap_gui.c
@@ -330,7 +330,7 @@ static void DrawSmallMapStuff(byte *dst, uint xc, uint yc, int pitch, int reps,
do {
// check if the tile (xc,yc) is within the map range
- if (xc < MapSizeX() - 1 && yc < MapSizeY() - 1) {
+ if (xc < MapMaxX() && yc < MapMaxY()) {
// check if the dst pointer points to a pixel inside the screen buffer
if (dst > _screen.dst_ptr && dst < dst_ptr_end)
WRITE_PIXELS_OR(dst, proc(TILE_XY(xc, yc)) & mask );