summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-11-10 22:56:05 +0000
committerrubidium <rubidium@openttd.org>2010-11-10 22:56:05 +0000
commit72a6eeef266185aa596d7c4be35a8dbc9809f141 (patch)
tree4aa38c708200d23bcc596194abae53fcb17ff8de /src
parentd1dfb276992e309d54c55a07ef79aa600a38b8f4 (diff)
downloadopenttd-72a6eeef266185aa596d7c4be35a8dbc9809f141.tar.xz
(svn r21137) -Fix/revert-ish (r1385): station ratings weren't updated (anymore) after an aircraft crashed
Diffstat (limited to 'src')
-rw-r--r--src/aircraft_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp
index 1c3a29549..9afad2f0b 100644
--- a/src/aircraft_cmd.cpp
+++ b/src/aircraft_cmd.cpp
@@ -1150,6 +1150,7 @@ static void CrashAirplane(Aircraft *v)
v->index,
st != NULL ? st->index : INVALID_STATION);
+ ModifyStationRatingAround(v->tile, v->owner, -160, 30);
SndPlayVehicleFx(SND_12_EXPLOSION, v);
}