summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-11-04 00:08:57 +0000
committerbelugas <belugas@openttd.org>2007-11-04 00:08:57 +0000
commite2c0f1faf75c1c81790f11c88f9ceee8d36916c0 (patch)
tree14a742a306f14c4d3afd56b725a7c6ffe7fb0e73 /src/economy.cpp
parentc871dc1dd51634f6ac49c803be8389088ee39d43 (diff)
downloadopenttd-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/economy.cpp')
-rw-r--r--src/economy.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index 67e704d00..793c0b960 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -514,7 +514,7 @@ void DrawNewsBankrupcy(Window *w)
switch (ni->string_id & 0xF0) {
case NB_BTROUBLE:
- DrawStringCentered(w->width >> 1, 1, STR_7056_TRANSPORT_COMPANY_IN_TROUBLE, 0);
+ DrawStringCentered(w->width >> 1, 1, STR_7056_TRANSPORT_COMPANY_IN_TROUBLE, TC_FROMSTRING);
SetDParam(0, p->index);
@@ -526,7 +526,7 @@ void DrawNewsBankrupcy(Window *w)
break;
case NB_BMERGER:
- DrawStringCentered(w->width >> 1, 1, STR_7059_TRANSPORT_COMPANY_MERGER, 0);
+ DrawStringCentered(w->width >> 1, 1, STR_7059_TRANSPORT_COMPANY_MERGER, TC_FROMSTRING);
SetDParam(0, ni->params[0]);
SetDParam(1, p->index);
SetDParam(2, ni->params[1]);
@@ -538,7 +538,7 @@ void DrawNewsBankrupcy(Window *w)
break;
case NB_BBANKRUPT:
- DrawStringCentered(w->width >> 1, 1, STR_705C_BANKRUPT, 0);
+ DrawStringCentered(w->width >> 1, 1, STR_705C_BANKRUPT, TC_FROMSTRING);
SetDParam(0, ni->params[0]);
DrawStringMultiCenter(
((w->width - 101) >> 1) + 98,
@@ -548,7 +548,7 @@ void DrawNewsBankrupcy(Window *w)
break;
case NB_BNEWCOMPANY:
- DrawStringCentered(w->width >> 1, 1, STR_705E_NEW_TRANSPORT_COMPANY_LAUNCHED, 0);
+ DrawStringCentered(w->width >> 1, 1, STR_705E_NEW_TRANSPORT_COMPANY_LAUNCHED, TC_FROMSTRING);
SetDParam(0, p->index);
SetDParam(1, ni->params[0]);
DrawStringMultiCenter(