diff options
author | rubidium <rubidium@openttd.org> | 2008-04-21 14:33:33 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-21 14:33:33 +0000 |
commit | e947fde7013a09d58744604faaf3c574dae51c47 (patch) | |
tree | 4c1ef67d89a0fbc13b10c3ed8a9880350b14ab12 /src/town_cmd.cpp | |
parent | bbe13a0623eea9f46353fca57a35ae745040fbaf (diff) | |
download | openttd-e947fde7013a09d58744604faaf3c574dae51c47.tar.xz |
(svn r12819) -Codechange: handle more NewGRFs in the same way as TTDP does it, i.e. testing the low bits for 0xFF or 0 instead of all bits.
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r-- | src/town_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index b40f41166..8bbe05377 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -1936,7 +1936,7 @@ static bool BuildTownHouse(Town *t, TileIndex tile) if (HasBit(hs->callback_mask, CBM_HOUSE_ALLOW_CONSTRUCTION)) { uint16 callback_res = GetHouseCallback(CBID_HOUSE_ALLOW_CONSTRUCTION, 0, 0, house, t, tile); - if (callback_res != CALLBACK_FAILED && callback_res == 0) continue; + if (callback_res != CALLBACK_FAILED && GB(callback_res, 0, 8) == 0) continue; } } |