summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-05-02 21:58:02 +0000
committerpeter1138 <peter1138@openttd.org>2006-05-02 21:58:02 +0000
commitff7d2cace9058e10c103cb796b1b79c1926d5bba (patch)
tree0442eaec00ede4724a3f836829f267982b0dabbf
parent2fdce8ee8cb890ac6642b3ee4df7a9a3b6af829f (diff)
downloadopenttd-ff7d2cace9058e10c103cb796b1b79c1926d5bba.tar.xz
(svn r4704) - NewGRF: in Action 0x03, set the engine type's GRF ID on the 'default' cargo type, not for each specific cargo. Fixes '(undefined string)' issues, as some engines weren't set properly.
-rw-r--r--newgrf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newgrf.c b/newgrf.c
index 58f42d021..b27ef8c3e 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -1704,7 +1704,6 @@ static void NewVehicle_SpriteGroupMapping(byte *buf, int len)
SetWagonOverrideSprites(engine, _cur_grffile->spritegroups[groupid], last_engines, last_engines_count);
} else {
SetCustomEngineSprites(engine, ctype, _cur_grffile->spritegroups[groupid]);
- SetEngineGRF(engine, _cur_grffile->grfid);
last_engines[i] = engine;
}
}
@@ -1736,6 +1735,7 @@ static void NewVehicle_SpriteGroupMapping(byte *buf, int len)
}
} else {
SetCustomEngineSprites(engine, GC_DEFAULT, _cur_grffile->spritegroups[groupid]);
+ SetEngineGRF(engine, _cur_grffile->grfid);
last_engines[i] = engine;
}
}