summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-12-13 18:25:42 +0000
committerfrosch <frosch@openttd.org>2008-12-13 18:25:42 +0000
commitc1d1ba22cc22e5b0527840d8aca4e70703261d62 (patch)
tree0890693cd16487b25fae0ddc78f9d2f07a83bc94 /src/openttd.cpp
parenta5b33d1f3bf8db9984f4a55ad86c546079509847 (diff)
downloadopenttd-c1d1ba22cc22e5b0527840d8aca4e70703261d62.tar.xz
(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).
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index ea56b0c58..33ad8e555 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -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();