From ae94d7b26fbdceab210d5ba7bf257f77ddb81a20 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Fri, 21 Apr 2006 07:06:31 +0000 Subject: (svn r4496) - NewGRF: switch custom engine names from storing a char* to using the new StringID based text system. Vehicle name translations now work. --- newgrf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'newgrf.c') 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 -- cgit v1.2.3-54-g00ecf