diff options
author | rubidium <rubidium@openttd.org> | 2007-07-01 19:24:54 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-01 19:24:54 +0000 |
commit | 90f85c957ad8e8d2dfd23535701b3079fc2d2718 (patch) | |
tree | fb5afab9eaa026a83642f983053acfabe1d9f492 /src/ship_cmd.cpp | |
parent | 83a880c882992efb1b949b26ac881abc3825964f (diff) | |
download | openttd-90f85c957ad8e8d2dfd23535701b3079fc2d2718.tar.xz |
(svn r10409) -Codechange: replace (Aircraft|RoadVeh|Ship|Train)_Tick with a Tick method in the Vehicle class.
Diffstat (limited to 'src/ship_cmd.cpp')
-rw-r--r-- | src/ship_cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp index 555af11b5..b71d00b02 100644 --- a/src/ship_cmd.cpp +++ b/src/ship_cmd.cpp @@ -787,10 +787,10 @@ static void AgeShipCargo(Vehicle *v) v->cargo.AgeCargo(); } -void Ship_Tick(Vehicle *v) +void Ship::Tick() { - AgeShipCargo(v); - ShipController(v); + AgeShipCargo(this); + ShipController(this); } |