diff options
author | Darkvater <Darkvater@openttd.org> | 2005-06-06 17:30:52 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2005-06-06 17:30:52 +0000 |
commit | ab7bf18d2385afb58b4a58bea5dffe6c05fb8ce9 (patch) | |
tree | 059ba90d78efcfa5b5ea6c27ae1b64336b5540a6 | |
parent | 4198418d77389c00126e398cba076290d78e63b1 (diff) | |
download | openttd-ab7bf18d2385afb58b4a58bea5dffe6c05fb8ce9.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
-rw-r--r-- | smallmap_gui.c | 2 | ||||
-rw-r--r-- | terraform_gui.c | 2 |
2 files changed, 2 insertions, 2 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 ); diff --git a/terraform_gui.c b/terraform_gui.c index a0eed2314..3ffde8407 100644 --- a/terraform_gui.c +++ b/terraform_gui.c @@ -135,7 +135,7 @@ static void TerraformClick_Raise(Window *w) static void TerraformClick_Level(Window *w) { - HandlePlacePushButton(w, 6, ANIMCURSOR_LOWERLAND, 2, PlaceProc_LevelLand); + HandlePlacePushButton(w, 6, SPR_CURSOR_LEVEL_LAND, 2, PlaceProc_LevelLand); } static void TerraformClick_Dynamite(Window *w) |