diff options
author | belugas <belugas@openttd.org> | 2007-03-22 03:42:43 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-03-22 03:42:43 +0000 |
commit | 06d3669bb54143c588bd7b3abddbbb79582c94ee (patch) | |
tree | 7d05afaad21b690abc8c07d95e1f62206b11bccd /src/newgrf.cpp | |
parent | 6e9ab4f7b8ceefa99ee2e074b0fb814d8ece3740 (diff) | |
download | openttd-06d3669bb54143c588bd7b3abddbbb79582c94ee.tar.xz |
(svn r9400) -Codechange: Use some more representative enum names for landscape types.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r-- | src/newgrf.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index d113b8244..749b5f7a2 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -1306,8 +1306,8 @@ static bool TownHouseChangeInfo(uint hid, int numinfo, int prop, byte **bufp, in /* If value of goods is negative, it means in fact food or, if in toyland, fizzy_drink acceptance. * Else, we have "standard" 3rd cargo type, goods or candy, for toyland once more */ - housespec[i]->accepts_cargo[2] = (goods >= 0) ? ((_opt.landscape == LT_CANDY) ? CT_CANDY : CT_GOODS) : - ((_opt.landscape == LT_CANDY) ? CT_FIZZY_DRINKS : CT_FOOD); + housespec[i]->accepts_cargo[2] = (goods >= 0) ? ((_opt.landscape == LT_TOYLAND) ? CT_CANDY : CT_GOODS) : + ((_opt.landscape == LT_TOYLAND) ? CT_FIZZY_DRINKS : CT_FOOD); housespec[i]->cargo_acceptance[2] = abs(goods); // but we do need positive value here } |