summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-08 08:36:00 +0000
committertron <tron@openttd.org>2006-03-08 08:36:00 +0000
commit80878a2c9b589a5acd83c8d00898cbafe6d35b12 (patch)
tree915ac61603fdff89b30ef313b84bd53e6229907a
parentab9af3b05d2b99a63b10a9923026916015788099 (diff)
downloadopenttd-80878a2c9b589a5acd83c8d00898cbafe6d35b12.tar.xz
(svn r3788) Fix (harmless) typo in r3784
-rw-r--r--direction.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/direction.h b/direction.h
index 4aed8bea3..49a2b6340 100644
--- a/direction.h
+++ b/direction.h
@@ -34,7 +34,7 @@ typedef enum DirDiff {
static inline DirDiff DirDifference(Direction d0, Direction d1)
{
- return (DirDiff)(d0 + 8 - d1) % 8;
+ return (DirDiff)((d0 + 8 - d1) % 8);
}
static inline DirDiff ChangeDirDiff(DirDiff d, DirDiff delta)