summaryrefslogtreecommitdiff
path: root/src/train.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/train.h')
-rw-r--r--src/train.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/train.h b/src/train.h
index 885130ba7..2f51871c9 100644
--- a/src/train.h
+++ b/src/train.h
@@ -145,6 +145,8 @@ struct Train : public GroundVehicle<Train, VEH_TRAIN> {
void ConsistChanged(bool same_length);
+ void RailtypeChanged();
+
int UpdateSpeed();
void UpdateAcceleration();
@@ -372,7 +374,7 @@ struct Train : public GroundVehicle<Train, VEH_TRAIN> {
protected: // These functions should not be called outside acceleration code.
- void UpdateVisualEffect();
+ void UpdateVisualEffect(bool allow_power_change);
/**
* Allows to know the power value that this vehicle will use.