summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-22 22:22:46 +0000
committerrubidium <rubidium@openttd.org>2009-05-22 22:22:46 +0000
commit80e94b9bb15f846189e98f1f457afe2b96ba2b58 (patch)
treeb623c3e1cc75771986452340a138bd3ac60d4cbc /src/vehicle.cpp
parent7a37220881c995f317bf5bd0f3077fa6c9e9d098 (diff)
downloadopenttd-80e94b9bb15f846189e98f1f457afe2b96ba2b58.tar.xz
(svn r16391) -Codechange: use Train instead of Vehicle where appropriate.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index fc936d555..5cfb253bb 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -982,8 +982,8 @@ void VehicleEnterDepot(Vehicle *v)
if (!IsFrontEngine(v)) v = v->First();
UpdateSignalsOnSegment(v->tile, INVALID_DIAGDIR, v->owner);
v->load_unload_time_rem = 0;
- ClrBit(v->u.rail.flags, VRF_TOGGLE_REVERSE);
- TrainConsistChanged(v, true);
+ ClrBit(((Train *)v)->u.rail.flags, VRF_TOGGLE_REVERSE);
+ TrainConsistChanged((Train *)v, true);
break;
case VEH_ROAD:
@@ -1488,7 +1488,7 @@ void Vehicle::LeaveStation()
* might not be marked as wanting a reservation, e.g.
* when an overlength train gets turned around in a station. */
if (UpdateSignalsOnSegment(this->tile, TrackdirToExitdir(this->GetVehicleTrackdir()), this->owner) == SIGSEG_PBS || _settings_game.pf.reserve_paths) {
- TryPathReserve(this, true, true);
+ TryPathReserve((Train *)this, true, true);
}
}
}