mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-22 07:06:01 +00:00
(svn r2425) - Fix (regression): wrong sprite for level-land cursor (thx Tron)
- CodeChange: change MapSizeX() - 1 to MapMaxX() in the smallmap drawing code
This commit is contained in:
parent
7dd5578477
commit
b2b0f6f3ce
@ -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 );
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user