summaryrefslogtreecommitdiff
path: root/src/vehicle_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vehicle_base.h')
-rw-r--r--src/vehicle_base.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vehicle_base.h b/src/vehicle_base.h
index 55e81b2f0..7db794c1e 100644
--- a/src/vehicle_base.h
+++ b/src/vehicle_base.h
@@ -613,6 +613,12 @@ public:
CommandCost SendToDepot(DoCommandFlag flags, DepotCommand command);
/**
+ * Update the cached visual effect.
+ * @param allow_power_change true if the wagon-is-powered-state may change.
+ */
+ void UpdateVisualEffect(bool allow_power_change = true);
+
+ /**
* Increments cur_order_index, keeps care of the wrap-around and invalidates the GUI.
* Note: current_order is not invalidated.
*/