diff options
author | rubidium <rubidium@openttd.org> | 2007-02-13 10:46:45 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-02-13 10:46:45 +0000 |
commit | 0ba18a677c05adbe52415e39dc921397cc87c801 (patch) | |
tree | 9da972ad5dab80f2ee926e33793e6075fa72a3f3 /src/rail_cmd.cpp | |
parent | dba93c7038cbf136c8e0c0ae658d0cbcf6a46dc2 (diff) | |
download | openttd-0ba18a677c05adbe52415e39dc921397cc87c801.tar.xz |
(svn r8701) -Codechange: replace magic numbers with enums for u.rail.track.
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r-- | src/rail_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index bb8ba81a8..5a978834e 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -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); |