summaryrefslogtreecommitdiff
path: root/newgrf.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-04-21 07:06:31 +0000
committerpeter1138 <peter1138@openttd.org>2006-04-21 07:06:31 +0000
commitae94d7b26fbdceab210d5ba7bf257f77ddb81a20 (patch)
tree3026f917cd75fdee6e3c6c96a37cde096ed4b5a7 /newgrf.c
parent3660fab10a4785c37ead9a718c4e25c601e5c899 (diff)
downloadopenttd-ae94d7b26fbdceab210d5ba7bf257f77ddb81a20.tar.xz
(svn r4496) - NewGRF: switch custom engine names from storing a char* to using the new StringID based text system. Vehicle name
translations now work.
Diffstat (limited to 'newgrf.c')
-rw-r--r--newgrf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/newgrf.c b/newgrf.c
index f276c12d8..7269c5d6e 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -1762,8 +1762,7 @@ static void VehicleNewName(byte *buf, int len)
case GSF_ROAD:
case GSF_SHIP:
case GSF_AIRCRAFT:
- SetCustomEngineName(id, name);
- /*SetCustomEngineName(id, AddGRFString(_cur_grffile->grfid, id, lang, name));*/
+ SetCustomEngineName(id, AddGRFString(_cur_grffile->grfid, id, lang, name));
break;
#if 0