(svn r12924) -Feature: Introducing the so called 'engine pool' which primarily removes the fixed engine type limits and also happens to allow (with the patch option 'dynamic_engines') multiple NewGRF vehicle sets to coexist.
This commit is contained in:
@@ -1330,18 +1330,19 @@ static const OldChunks engine_chunk[] = {
|
||||
|
||||
static bool LoadOldEngine(LoadgameState *ls, int num)
|
||||
{
|
||||
if (!LoadChunk(ls, GetEngine(num), engine_chunk)) return false;
|
||||
Engine *e = GetTempDataEngine(num);
|
||||
if (!LoadChunk(ls, e, engine_chunk)) return false;
|
||||
|
||||
/* Make sure wagons are marked as do-not-age */
|
||||
if ((num >= 27 && num < 54) || (num >= 57 && num < 84) || (num >= 89 && num < 116))
|
||||
GetEngine(num)->age = 0xFFFF;
|
||||
e->age = 0xFFFF;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool LoadOldEngineName(LoadgameState *ls, int num)
|
||||
{
|
||||
Engine *e = GetEngine(num);
|
||||
Engine *e = GetTempDataEngine(num);
|
||||
e->name = CopyFromOldName(RemapOldStringID(ReadUint16(ls)));
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user