(svn r8701) -Codechange: replace magic numbers with enums for u.rail.track.

This commit is contained in:
rubidium
2007-02-13 10:46:45 +00:00
parent af3001b988
commit 4ec7eb2201
7 changed files with 38 additions and 38 deletions

View File

@@ -1969,7 +1969,7 @@ static uint32 VehicleEnter_Track(Vehicle *v, TileIndex tile, int x, int y)
} else if (_fractcoords_enter[dir] == fract_coord) {
if (DiagDirToDir(ReverseDiagDir(dir)) == v->direction) {
/* enter the depot */
v->u.rail.track = TRACK_BIT_SPECIAL,
v->u.rail.track = TRACK_BIT_DEPOT,
v->vehstatus |= VS_HIDDEN; /* hide it */
v->direction = ReverseDir(v->direction);
if (v->next == NULL) VehicleEnterDepot(v);