summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/economy.cpp')
-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;