summaryrefslogtreecommitdiff
path: root/misc_gui.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2005-02-22 11:33:13 +0000
committerDarkvater <Darkvater@openttd.org>2005-02-22 11:33:13 +0000
commit1f683aa13d619346686a1a607191b81d4a6940e9 (patch)
tree2411e729a86457e7b91fa0fd273a53b2a20926d0 /misc_gui.c
parentd691c08d1c7d384b538862d1d8a67cbe6b4c0a0b (diff)
downloadopenttd-1f683aa13d619346686a1a607191b81d4a6940e9.tar.xz
(svn r1896) - Fix: remove Translated by hack since it's not used
Diffstat (limited to 'misc_gui.c')
-rw-r--r--misc_gui.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/misc_gui.c b/misc_gui.c
index 2bee2029b..8b2f4291b 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -199,7 +199,6 @@ static const char *credits[] = {
" Marcin Grzegorczyk - Foundations for Tracks on Slopes",
" All Translators - Who made OpenTTD a truly international game",
" Bug Reporters - Without whom OpenTTD would still be full of bugs!",
- NULL,
"",
"",
"And last but not least:",
@@ -214,8 +213,6 @@ static void AboutWindowProc(Window *w, WindowEvent *e)
WP(w, scroller_d).height = w->height - 40;
break;
case WE_PAINT: {
- const char *str;
- char buffer[100];
uint i;
int y = WP(w, scroller_d).height;
DrawWindowWidgets(w);
@@ -227,16 +224,7 @@ static void AboutWindowProc(Window *w, WindowEvent *e)
// Show all scrolling credits
for (i = 0; i < lengthof(credits); i++) {
if (y >= 50 && y < (w->height - 40)) {
- str = credits[i];
- /* Hack-Alert: Translated by is a dynamic string as it changes
- * with the language chosen. So the special value of NULL is used
- * to identify this for the moment */
- if (str == NULL) {
- GetString(buffer, STR_TRANSLATED_BY);
- str = buffer;
- }
-
- DoDrawString(str, 10, y, 0x10);
+ DoDrawString(credits[i], 10, y, 0x10);
}
y += 10;
}