summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-06-21 16:49:54 +0000
committeryexo <yexo@openttd.org>2010-06-21 16:49:54 +0000
commit3c6fb88a095aa5404807ce26bb3a1529b25f5ffb (patch)
tree410edaada85417bc71f32bc47705fae50c6a9074
parent9cfb61adf58f882f03f17da05e84c25f7572be6d (diff)
downloadopenttd-3c6fb88a095aa5404807ce26bb3a1529b25f5ffb.tar.xz
(svn r20004) -Fix: [NewGRF] stringcodes 82, 83 and 84 weren't properly converted to openttd codes so they didn't work
-rw-r--r--src/newgrf_text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp
index 8042fd042..112a3b2cf 100644
--- a/src/newgrf_text.cpp
+++ b/src/newgrf_text.cpp
@@ -245,7 +245,7 @@ char *TranslateTTDPatchCodes(uint32 grfid, const char *str)
}
case 0x82:
case 0x83:
- case 0x84: d += Utf8Encode(d, SCC_NEWGRF_PRINT_WORD_SPEED + c - 0x82); break;
+ case 0x84: d += Utf8Encode(d, SCC_NEWGRF_PRINT_DATE + c - 0x82); break;
case 0x85: d += Utf8Encode(d, SCC_NEWGRF_DISCARD_WORD); break;
case 0x86: d += Utf8Encode(d, SCC_NEWGRF_ROTATE_TOP_4_WORDS); break;
case 0x87: d += Utf8Encode(d, SCC_NEWGRF_PRINT_WORD_LITRES); break;