summaryrefslogtreecommitdiff
path: root/rail.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-18 13:20:50 +0000
committertron <tron@openttd.org>2006-03-18 13:20:50 +0000
commitd8dcedcfd23f4e875788087c054187fe37bd8a43 (patch)
tree3e6f1c59c1d5d2c85f13911e3728aa9619db888b /rail.h
parentb610872f35209ab796aae289c9a01c26b86f1b03 (diff)
downloadopenttd-d8dcedcfd23f4e875788087c054187fe37bd8a43.tar.xz
(svn r3946) Add short hand names for common track combinations
Diffstat (limited to 'rail.h')
-rw-r--r--rail.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/rail.h b/rail.h
index ac2c47e60..a9b3c3874 100644
--- a/rail.h
+++ b/rail.h
@@ -500,9 +500,7 @@ static inline bool TracksOverlap(TrackBits bits)
/* We know that there are at least two tracks present. When there are more
* than 2 tracks, they will surely overlap. When there are two, they will
* always overlap unless they are lower & upper or right & left. */
- return
- bits != (TRACK_BIT_UPPER | TRACK_BIT_LOWER) &&
- bits != (TRACK_BIT_LEFT | TRACK_BIT_RIGHT);
+ return bits != TRACK_BIT_HORZ && bits != TRACK_BIT_VERT;
}
void DrawTrainDepotSprite(int x, int y, int image, RailType railtype);