summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2006-05-03 22:12:09 +0000
committerglx <glx@openttd.org>2006-05-03 22:12:09 +0000
commitac18c6063aa04843848097a73bccd6f11354edef (patch)
tree5f22e8c7ad448db8cf1ebb3fe7643e1b9601f18b
parentfe6801bb57c4afbbed688348156419f98ace6c0d (diff)
downloadopenttd-ac18c6063aa04843848097a73bccd6f11354edef.tar.xz
(svn r4732) - Fix: use correct types in IsValid[Direction|Axis]
-rw-r--r--direction.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/direction.h b/direction.h
index ba3213896..cee9ab73a 100644
--- a/direction.h
+++ b/direction.h
@@ -118,12 +118,12 @@ static inline bool IsValidDiagDirection(DiagDirection d)
return d < DIAGDIR_END;
}
-static inline bool IsValidDirection(DiagDirection d)
+static inline bool IsValidDirection(Direction d)
{
return d < DIR_END;
}
-static inline bool IsValidAxis(DiagDirection d)
+static inline bool IsValidAxis(Axis d)
{
return d < AXIS_END;
}