summaryrefslogtreecommitdiff
path: root/town_cmd.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-01-14 09:20:12 +0000
committercelestar <celestar@openttd.org>2005-01-14 09:20:12 +0000
commitfebac23b25e468dbdc7491477d51458fff9e16ca (patch)
treeffb100e443120f881e94596910bf6feb7421f6ca /town_cmd.c
parent9e10458209fb9eaabb9192383614d950b572083c (diff)
downloadopenttd-febac23b25e468dbdc7491477d51458fff9e16ca.tar.xz
(svn r1504) enummed town ratings (Jango)
Diffstat (limited to 'town_cmd.c')
-rw-r--r--town_cmd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/town_cmd.c b/town_cmd.c
index eb3f11a68..d978b299a 100644
--- a/town_cmd.c
+++ b/town_cmd.c
@@ -322,7 +322,7 @@ static int32 ClearTile_Town(uint tile, byte flags)
}
if (flags & DC_EXEC) {
- ChangeTownRating(t, -rating, -1000);
+ ChangeTownRating(t, -rating, RATING_HOUSE_MINIMUM);
ClearTownHouse(t, tile);
}
@@ -1570,13 +1570,12 @@ static void TownActionBribe(Town *t, int action)
/* decrease by a lot!
* ChangeTownRating is only for stuff in demolishing. Bribe failure should
* be independent of any cheat settings
- * ChangeTownRating(c, -1000, -50);
*/
rating = t->ratings[_current_player];
if (rating > -50)
- t->ratings[_current_player] = -50;
+ t->ratings[_current_player] = RATING_BRIBE_DOWN_TO;
} else {
- ChangeTownRating(t, 200, 800);
+ ChangeTownRating(t, RATING_BRIBE_UP_STEP, RATING_BRIBE_MAXIMUM);
}
}