From 06d3669bb54143c588bd7b3abddbbb79582c94ee Mon Sep 17 00:00:00 2001 From: belugas Date: Thu, 22 Mar 2007 03:42:43 +0000 Subject: (svn r9400) -Codechange: Use some more representative enum names for landscape types. --- src/newgrf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/newgrf.cpp') 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 } -- cgit v1.2.3-70-g09d2