summaryrefslogtreecommitdiff
path: root/src/signal.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-05-13 10:14:29 +0000
committerrubidium <rubidium@openttd.org>2010-05-13 10:14:29 +0000
commit062dd0e24c283f210216ede06bbde0ed72c7ed25 (patch)
treea917e975f1f5d4c144ecad2c799cf58764a1f592 /src/signal.cpp
parenta2d6961ab3c9aa43b95dfe9fa4699d290e5627e2 (diff)
downloadopenttd-062dd0e24c283f210216ede06bbde0ed72c7ed25.tar.xz
(svn r19814) -Codechange: give some more unnamed enums a name, in case they consisted of unrelated values use static const (u)int
Diffstat (limited to 'src/signal.cpp')
-rw-r--r--src/signal.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/signal.cpp b/src/signal.cpp
index cdcde264e..9daefff8d 100644
--- a/src/signal.cpp
+++ b/src/signal.cpp
@@ -20,12 +20,10 @@
/** these are the maximums used for updating signal blocks */
-enum {
- SIG_TBU_SIZE = 64, ///< number of signals entering to block
- SIG_TBD_SIZE = 256, ///< number of intersections - open nodes in current block
- SIG_GLOB_SIZE = 128, ///< number of open blocks (block can be opened more times until detected)
- SIG_GLOB_UPDATE = 64, ///< how many items need to be in _globset to force update
-};
+static const uint SIG_TBU_SIZE = 64; ///< number of signals entering to block
+static const uint SIG_TBD_SIZE = 256; ///< number of intersections - open nodes in current block
+static const uint SIG_GLOB_SIZE = 128; ///< number of open blocks (block can be opened more times until detected)
+static const uint SIG_GLOB_UPDATE = 64; ///< how many items need to be in _globset to force update
assert_compile(SIG_GLOB_UPDATE <= SIG_GLOB_SIZE);