From fab1a52963859f96b46528ee67d187a15dcbd3e2 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 13 Dec 2008 18:25:42 +0000 Subject: (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). --- src/openttd.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/openttd.cpp') 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(); -- cgit v1.2.3-70-g09d2