From b9407f7ca07f26a4543d75dd381877467721e796 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 18 Nov 2010 14:09:39 +0000 Subject: (svn r21235) -Codechange: Move Train::UpdateVisualEffect to the Vehicle class (Hirundo) --- src/vehicle_base.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/vehicle_base.h') 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 @@ -612,6 +612,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. -- cgit v1.2.3-54-g00ecf