diff options
author | belugas <belugas@openttd.org> | 2007-11-04 00:08:57 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-11-04 00:08:57 +0000 |
commit | e2c0f1faf75c1c81790f11c88f9ceee8d36916c0 (patch) | |
tree | 14a742a306f14c4d3afd56b725a7c6ffe7fb0e73 /src/ship_gui.cpp | |
parent | c871dc1dd51634f6ac49c803be8389088ee39d43 (diff) | |
download | openttd-e2c0f1faf75c1c81790f11c88f9ceee8d36916c0.tar.xz |
(svn r11374) -Codechange: Give meaning to the magical number that specifies the color of the text in a DrawString call.
Patch heavily based on BiBB's work (FS#1383)
Diffstat (limited to 'src/ship_gui.cpp')
-rw-r--r-- | src/ship_gui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ship_gui.cpp b/src/ship_gui.cpp index e08ea3948..d2d2f1a90 100644 --- a/src/ship_gui.cpp +++ b/src/ship_gui.cpp @@ -52,11 +52,11 @@ void DrawShipDetails(const Vehicle *v, int x, int y) SetDParam(0, v->engine_type); SetDParam(1, v->build_year); SetDParam(2, v->value); - DrawString(x, y, STR_9816_BUILT_VALUE, 0); + DrawString(x, y, STR_9816_BUILT_VALUE, TC_FROMSTRING); SetDParam(0, v->cargo_type); SetDParam(1, v->cargo_cap); - DrawString(x, y + 10, STR_9817_CAPACITY, 0); + DrawString(x, y + 10, STR_9817_CAPACITY, TC_FROMSTRING); StringID str = STR_8812_EMPTY; if (!v->cargo.Empty()) { @@ -65,9 +65,9 @@ void DrawShipDetails(const Vehicle *v, int x, int y) SetDParam(2, v->cargo.Source()); str = STR_8813_FROM; } - DrawString(x, y + 21, str, 0); + DrawString(x, y + 21, str, TC_FROMSTRING); /* Draw Transfer credits text */ SetDParam(0, v->cargo.FeederShare()); - DrawString(x, y + 33, STR_FEEDER_CARGO_VALUE, 0); + DrawString(x, y + 33, STR_FEEDER_CARGO_VALUE, TC_FROMSTRING); } |