changeset 3162:d22ae987ccd9 draft

(svn r3788) Fix (harmless) typo in r3784
author tron <tron@openttd.org>
date Wed, 08 Mar 2006 08:36:00 +0000
parents cc1a916e7dab
children e6db5fc6b1e4
files direction.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/direction.h
+++ b/direction.h
@@ -34,7 +34,7 @@
 
 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)