(svn r14672) -Fix [FS#2444]: Property 7 and callback 12 were broken for aircraft.

Now callback 12 is properly called also for 'mail'.
If the callback is not used, 'mail' uses 1/4 of property 7 (rounded up).
This commit is contained in:
frosch
2008-12-13 18:25:42 +00:00
parent d2a050bb29
commit fab1a52963
3 changed files with 16 additions and 0 deletions

View File

@@ -2593,6 +2593,16 @@ bool AfterLoadGame()
}
}
if (CheckSavegameVersion(103)) {
Vehicle *v;
FOR_ALL_VEHICLES(v) {
/* Set engine_type of shadow and rotor */
if (v->type == VEH_AIRCRAFT && !IsNormalAircraft(v)) {
v->engine_type = v->First()->engine_type;
}
}
}
GamelogPrintDebug(1);
return InitializeWindowsAndCaches();