From 3904640d02d22f68160c6fb80b4da3d1ee9b9f5a Mon Sep 17 00:00:00 2001 From: belugas Date: Mon, 12 Nov 2007 01:05:35 +0000 Subject: (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 --- src/newgrf_house.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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; } } -- cgit v1.2.3-70-g09d2