summaryrefslogtreecommitdiff
path: root/town_gui.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
commit957635121c5a141f7ed37e3972f29bcf41dcee03 (patch)
treeffb100e443120f881e94596910bf6feb7421f6ca /town_gui.c
parent0c75fe0948eb4a239e9bd0cc93dead256925bac5 (diff)
downloadopenttd-957635121c5a141f7ed37e3972f29bcf41dcee03.tar.xz
(svn r1504) enummed town ratings (Jango)
Diffstat (limited to 'town_gui.c')
-rw-r--r--town_gui.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/town_gui.c b/town_gui.c
index 171294732..b4da4c432 100644
--- a/town_gui.c
+++ b/town_gui.c
@@ -119,13 +119,13 @@ static void TownAuthorityWndProc(Window *w, WindowEvent *e)
SetDParam(2, GetPlayerNameString(p->index, 3));
r = t->ratings[p->index];
- (str = STR_3035_APPALLING, r <= -400) || // Apalling
- (str++, r <= -200) || // Very Poor
- (str++, r <= 0) || // Poor
- (str++, r <= 200) || // Mediocore
- (str++, r <= 400) || // Good
- (str++, r <= 600) || // Very Good
- (str++, r <= 800) || // Excellent
+ (str = STR_3035_APPALLING, r <= RATING_APPALLING) || // Apalling
+ (str++, r <= RATING_VERYPOOR) || // Very Poor
+ (str++, r <= RATING_POOR) || // Poor
+ (str++, r <= RATING_MEDIOCRE) || // Mediocore
+ (str++, r <= RATING_GOOD) || // Good
+ (str++, r <= RATING_VERYGOOD) || // Very Good
+ (str++, r <= RATING_EXCELLENT) || // Excellent
(str++, true); // Outstanding
/* WARNING ugly hack!