# HG changeset patch # User Darkvater # Date 1118079052 0 # Node ID 0ad642b26ff2a5d7f1354160a83d36e3447a436a # Parent 68d78ef6833dbf686ca2e04c122cec4e82d0e12d (svn r2425) - Fix (regression): wrong sprite for level-land cursor (thx Tron) - CodeChange: change MapSizeX() - 1 to MapMaxX() in the smallmap drawing code diff -r 68d78ef6833d -r 0ad642b26ff2 smallmap_gui.c --- a/smallmap_gui.c Mon Jun 06 15:58:58 2005 +0000 +++ b/smallmap_gui.c Mon Jun 06 17:30:52 2005 +0000 @@ -330,7 +330,7 @@ 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 -r 68d78ef6833d -r 0ad642b26ff2 terraform_gui.c --- a/terraform_gui.c Mon Jun 06 15:58:58 2005 +0000 +++ b/terraform_gui.c Mon Jun 06 17:30:52 2005 +0000 @@ -135,7 +135,7 @@ 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)