oldloader.c
changeset 1926 530480d14685
parent 1891 862800791170
child 1962 8254df1b359b
equal deleted inserted replaced
1925:e0c7c3fca6a5 1926:530480d14685
  1337 
  1337 
  1338 	OCL_END()
  1338 	OCL_END()
  1339 };
  1339 };
  1340 static bool LoadOldEngine(LoadgameState *ls, int num)
  1340 static bool LoadOldEngine(LoadgameState *ls, int num)
  1341 {
  1341 {
  1342 	if (!LoadChunk(ls, &_engines[num], engine_chunk))
  1342 	if (!LoadChunk(ls, GetEngine(num), engine_chunk))
  1343 		return false;
  1343 		return false;
  1344 
  1344 
  1345 	/* Make sure wagons are marked as do-not-age */
  1345 	/* Make sure wagons are marked as do-not-age */
  1346 	if ((num >= 27 && num < 54) || (num >= 57 && num < 84) || (num >= 89 && num < 116))
  1346 	if ((num >= 27 && num < 54) || (num >= 57 && num < 84) || (num >= 89 && num < 116))
  1347 		_engines[num].age = 0xFFFF;
  1347 		GetEngine(num)->age = 0xFFFF;
  1348 
  1348 
  1349 	return true;
  1349 	return true;
  1350 }
  1350 }
  1351 
  1351 
  1352 static const OldChunks subsidy_chunk[] = {
  1352 static const OldChunks subsidy_chunk[] = {