summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-05 12:54:22 +0000
committertron <tron@openttd.org>2006-03-05 12:54:22 +0000
commitf62a7480b7e79f483386f6661524e63b358a9260 (patch)
tree3b90960dcdd94c75b2d992ee8549f020accc512a
parentf6176a89f944cb7643251f0511ae992318bde0dc (diff)
downloadopenttd-f62a7480b7e79f483386f6661524e63b358a9260.tar.xz
(svn r3769) Add a cast to make KUDr's C++ compiler happy
-rw-r--r--direction.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/direction.h b/direction.h
index 0300db8a9..8a45dc43e 100644
--- a/direction.h
+++ b/direction.h
@@ -30,7 +30,7 @@ typedef enum DiagDirection {
static inline DiagDirection ReverseDiagDir(DiagDirection d)
{
- return 2 ^ d;
+ return (DiagDirection)(2 ^ d);
}