(svn r21235) -Codechange: Move Train::UpdateVisualEffect to the Vehicle class (Hirundo)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user