diff options
author | rubidium <rubidium@openttd.org> | 2010-11-18 14:09:39 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-11-18 14:09:39 +0000 |
commit | b9407f7ca07f26a4543d75dd381877467721e796 (patch) | |
tree | f76695757e9d7259ea03a6bf795303be343e8ad2 /src/vehicle_base.h | |
parent | 797435f05d10a9e4410a3a342080d4f8e3c756c8 (diff) | |
download | openttd-b9407f7ca07f26a4543d75dd381877467721e796.tar.xz |
(svn r21235) -Codechange: Move Train::UpdateVisualEffect to the Vehicle class (Hirundo)
Diffstat (limited to 'src/vehicle_base.h')
-rw-r--r-- | src/vehicle_base.h | 6 |
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. */ |