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/train_gui.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/train_gui.cpp')
-rw-r--r-- | src/train_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_gui.cpp b/src/train_gui.cpp index c73051600..8fbe33bc4 100644 --- a/src/train_gui.cpp +++ b/src/train_gui.cpp @@ -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; } |