summaryrefslogtreecommitdiff
path: root/src/road_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-22 16:56:36 +0000
committerrubidium <rubidium@openttd.org>2009-07-22 16:56:36 +0000
commit3bcfa7c52ad592ccfaf58ad499e78fd89aea6722 (patch)
tree93679153f8b75af75846228e5cd2c1a1a1ed0296 /src/road_type.h
parent13a7c550ad86f94bdf0dca83cd402cfd1ca6e8ba (diff)
downloadopenttd-3bcfa7c52ad592ccfaf58ad499e78fd89aea6722.tar.xz
(svn r16917) -Codechange: fix some GCC 4.5 'case X is not in enum Y' warnings
Diffstat (limited to 'src/road_type.h')
-rw-r--r--src/road_type.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/road_type.h b/src/road_type.h
index a50f91c7c..e681b83ad 100644
--- a/src/road_type.h
+++ b/src/road_type.h
@@ -51,6 +51,12 @@ enum RoadBits {
ROAD_NE = 8U, ///< North-east part
ROAD_X = ROAD_SW | ROAD_NE, ///< Full road along the x-axis (south-west + north-east)
ROAD_Y = ROAD_NW | ROAD_SE, ///< Full road along the y-axis (north-west + south-east)
+
+ ROAD_N = ROAD_NE | ROAD_NW, ///< Road at the two northern edges
+ ROAD_E = ROAD_NE | ROAD_SE, ///< Road at the two eastern edges
+ ROAD_S = ROAD_SE | ROAD_SW, ///< Road at the two southern edges
+ ROAD_W = ROAD_NW | ROAD_SW, ///< Road at the two western edges
+
ROAD_ALL = ROAD_X | ROAD_Y ///< Full 4-way crossing
};
DECLARE_ENUM_AS_BIT_SET(RoadBits);