summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-08-14 13:47:14 +0000
committerfrosch <frosch@openttd.org>2011-08-14 13:47:14 +0000
commita2cbae88b022414d4c2cff442b2a2588c666e2f0 (patch)
tree4ef7f20a3c6094cedcbd58958088b042e1095b5e /src
parentda0ee75a7081b2ca30a6fd6678ad52918fee1e8e (diff)
downloadopenttd-a2cbae88b022414d4c2cff442b2a2588c666e2f0.tar.xz
(svn r22746) -Feature: [NewGRF] Implement feature 04 property 18 bit 5.
Diffstat (limited to 'src')
-rw-r--r--src/economy.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index 15e136bf7..970359786 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -1346,6 +1346,10 @@ static void LoadUnloadVehicle(Vehicle *front, int *cargo_left)
}
}
+ if (anything_loaded || anything_unloaded) {
+ if (front->type == VEH_TRAIN) TriggerStationAnimation(st, st->xy, SAT_TRAIN_LOADS);
+ }
+
/* Only set completely_emptied, if we just unloaded all remaining cargo */
completely_emptied &= anything_unloaded;