summaryrefslogtreecommitdiff
path: root/src/vehicle_base.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-11-18 14:15:27 +0000
committerrubidium <rubidium@openttd.org>2010-11-18 14:15:27 +0000
commit9af570eab4335b6945bae122f93447d14b16154b (patch)
tree534eac5eb5a5e02b4bcaf37e9ba75da6a35dfb13 /src/vehicle_base.h
parent34c658b2030305d8cb27f80fd8a862c1b5c961ed (diff)
downloadopenttd-9af570eab4335b6945bae122f93447d14b16154b.tar.xz
(svn r21237) -Codechange: Move HandleLocomotiveSmokeCloud to Vehicle::ShowVisualEffect (Hirundo)
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 7db794c1e..070413ab9 100644
--- a/src/vehicle_base.h
+++ b/src/vehicle_base.h
@@ -618,6 +618,12 @@ public:
*/
void UpdateVisualEffect(bool allow_power_change = true);
+ /*
+ * Draw visual effects (smoke and/or sparks) for a vehicle chain.
+ * @pre this->IsPrimaryVehicle()
+ */
+ void ShowVisualEffect() const;
+
/**
* Increments cur_order_index, keeps care of the wrap-around and invalidates the GUI.
* Note: current_order is not invalidated.