diff options
author | frosch <frosch@openttd.org> | 2010-08-15 19:59:48 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-08-15 19:59:48 +0000 |
commit | 236737b2f29cc9ddd129a963d6a312a5c4ffe78b (patch) | |
tree | b7e7e718745ee22a3540dfc0252ef00b27ccdced /src/train.h | |
parent | 57a098bcccf8bbd5de95ae56d8f64e1427523844 (diff) | |
download | openttd-236737b2f29cc9ddd129a963d6a312a5c4ffe78b.tar.xz |
(svn r20505) -Feature [FS#3978]: Allow changing visual effect when changing railtype.
Diffstat (limited to 'src/train.h')
-rw-r--r-- | src/train.h | 4 |
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. |