(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

@@ -27,7 +27,7 @@ void CcBuildWagon(bool success, TileIndex tile, uint32 p1, uint32 p2)
FOR_ALL_VEHICLES(v) {
if (v->type == VEH_Train && IsFrontEngine(v) &&
v->tile == tile &&
v->u.rail.track == 0x80) {
v->u.rail.track == TRACK_BIT_DEPOT) {
if (found != NULL) return; // must be exactly one.
found = v;
}