(svn r20505) -Feature [FS#3978]: Allow changing visual effect when changing railtype.

This commit is contained in:
frosch
2010-08-15 19:59:48 +00:00
parent 57a098bccc
commit 236737b2f2
5 changed files with 35 additions and 12 deletions

View File

@@ -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.