diff options
author | belugas <belugas@openttd.org> | 2007-11-12 01:05:35 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-11-12 01:05:35 +0000 |
commit | 542697a28a1ee9d5520b4ef10ea88eeefbf1322f (patch) | |
tree | 24fc55bcf35df949f21123afc49c36e571adfed1 | |
parent | 1e3e5bf2cfa4ee55d78e8f265a74e5220757026d (diff) | |
download | openttd-542697a28a1ee9d5520b4ef10ea88eeefbf1322f.tar.xz |
(svn r11416) -Fix(r11411): For once, the warnings of MSVC are not useless. Inversion of the two parameters of DoTriggerHouse cause a complain which was legit, in this case
-rw-r--r-- | src/newgrf_house.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp index 960bd69f8..8aadabddb 100644 --- a/src/newgrf_house.cpp +++ b/src/newgrf_house.cpp @@ -555,9 +555,9 @@ static void DoTriggerHouse(TileIndex tile, HouseTrigger trigger, byte base_rando case HOUSE_TRIGGER_TILE_LOOP_TOP: if (!first) break; /* Random value of first tile already set. */ - if (hs->building_flags & BUILDING_2_TILES_Y) DoTriggerHouse(TILE_ADDXY(tile, 0, 1), trigger, false, random_bits); - if (hs->building_flags & BUILDING_2_TILES_X) DoTriggerHouse(TILE_ADDXY(tile, 1, 0), trigger, false, random_bits); - if (hs->building_flags & BUILDING_HAS_4_TILES) DoTriggerHouse(TILE_ADDXY(tile, 1, 1), trigger, false, random_bits); + if (hs->building_flags & BUILDING_2_TILES_Y) DoTriggerHouse(TILE_ADDXY(tile, 0, 1), trigger, random_bits, false); + if (hs->building_flags & BUILDING_2_TILES_X) DoTriggerHouse(TILE_ADDXY(tile, 1, 0), trigger, random_bits, false); + if (hs->building_flags & BUILDING_HAS_4_TILES) DoTriggerHouse(TILE_ADDXY(tile, 1, 1), trigger, random_bits, false); break; } } |