mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-19 15:25:39 +00:00
(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.
This commit is contained in:
parent
6c3cc7fd16
commit
a8bd882577
2
newgrf.c
2
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);
|
SetWagonOverrideSprites(engine, _cur_grffile->spritegroups[groupid], last_engines, last_engines_count);
|
||||||
} else {
|
} else {
|
||||||
SetCustomEngineSprites(engine, ctype, _cur_grffile->spritegroups[groupid]);
|
SetCustomEngineSprites(engine, ctype, _cur_grffile->spritegroups[groupid]);
|
||||||
SetEngineGRF(engine, _cur_grffile->grfid);
|
|
||||||
last_engines[i] = engine;
|
last_engines[i] = engine;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1736,6 +1735,7 @@ static void NewVehicle_SpriteGroupMapping(byte *buf, int len)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
SetCustomEngineSprites(engine, GC_DEFAULT, _cur_grffile->spritegroups[groupid]);
|
SetCustomEngineSprites(engine, GC_DEFAULT, _cur_grffile->spritegroups[groupid]);
|
||||||
|
SetEngineGRF(engine, _cur_grffile->grfid);
|
||||||
last_engines[i] = engine;
|
last_engines[i] = engine;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user