diff options
author | rubidium <rubidium@openttd.org> | 2009-05-22 22:55:41 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-05-22 22:55:41 +0000 |
commit | da5661a0c8870c532c393ec3d330c3fbb44eb8ac (patch) | |
tree | 93b9332d7e83e012a46777e2baf91bf323ea9fe9 /src/rail_cmd.cpp | |
parent | c4b627af422075ce4a0e1026c52f871dd3f146c0 (diff) | |
download | openttd-da5661a0c8870c532c393ec3d330c3fbb44eb8ac.tar.xz |
(svn r16393) -Codechange: move VehicleRail to Train.
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r-- | src/rail_cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index eb838ca26..fa869a9ff 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -2433,10 +2433,10 @@ static const signed char _deltacoord_leaveoffset[8] = { * @param v vehicle outside (leaving) the depot * @return number of ticks when the next wagon will leave */ -int TicksToLeaveDepot(const Vehicle *v) +int TicksToLeaveDepot(const Train *v) { DiagDirection dir = GetRailDepotDirection(v->tile); - int length = v->u.rail.cached_veh_length; + int length = v->tcache.cached_veh_length; switch (dir) { case DIAGDIR_NE: return ((int)(v->x_pos & 0x0F) - ((_fractcoords_enter[dir] & 0x0F) - (length + 1))); @@ -2468,7 +2468,7 @@ static VehicleEnterTileStatus VehicleEnter_Track(Vehicle *u, TileIndex tile, int /* calculate the point where the following wagon should be activated * this depends on the length of the current vehicle */ - length = v->u.rail.cached_veh_length; + length = v->tcache.cached_veh_length; fract_coord_leave = ((_fractcoords_enter[dir] & 0x0F) + // x |