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 | ec137f60edec89392a19fc078bf47d2ee291dc1c (patch) | |
tree | fb5afab9eaa026a83642f983053acfabe1d9f492 /src/ship_cmd.cpp | |
parent | c0e341ee05792cc692d19a8ed80aeebc05d3af0e (diff) | |
download | openttd-ec137f60edec89392a19fc078bf47d2ee291dc1c.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); } |