diff options
author | frosch <frosch@openttd.org> | 2010-08-24 16:15:42 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-08-24 16:15:42 +0000 |
commit | 9390bddbbdb1f2d7911db0a461827aa1f2a5d347 (patch) | |
tree | 712fae520c8cee9804c217f3410db4d440167dfb /src | |
parent | 3b04f510b14a44529cad789983b5071540a1bb7a (diff) | |
download | openttd-9390bddbbdb1f2d7911db0a461827aa1f2a5d347.tar.xz |
(svn r20610) -Fix (r20609): X and Y got swapped.
Diffstat (limited to 'src')
-rw-r--r-- | src/saveload/town_sl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/saveload/town_sl.cpp b/src/saveload/town_sl.cpp index 820c879f7..e246f61f7 100644 --- a/src/saveload/town_sl.cpp +++ b/src/saveload/town_sl.cpp @@ -12,6 +12,7 @@ #include "../stdafx.h" #include "../newgrf_house.h" #include "../town.h" +#include "../landscape.h" #include "saveload.h" #include "newgrf_sl.h" @@ -63,9 +64,9 @@ void UpdateHousesAndTowns() TileIndex tile = t + TileDiffXY(0, 1); if (!IsTileType(tile, MP_HOUSE) || GetCleanHouseType(tile) != house_type + 1) valid_house = false; } else if (hs->building_flags & TILE_SIZE_2x2) { - TileIndex tile = t + TileDiffXY(1, 0); + TileIndex tile = t + TileDiffXY(0, 1); if (!IsTileType(tile, MP_HOUSE) || GetCleanHouseType(tile) != house_type + 1) valid_house = false; - tile = t + TileDiffXY(0, 1); + tile = t + TileDiffXY(1, 0); if (!IsTileType(tile, MP_HOUSE) || GetCleanHouseType(tile) != house_type + 2) valid_house = false; tile = t + TileDiffXY(1, 1); if (!IsTileType(tile, MP_HOUSE) || GetCleanHouseType(tile) != house_type + 3) valid_house = false; |