diff options
author | rubidium <rubidium@openttd.org> | 2010-05-13 10:14:29 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-05-13 10:14:29 +0000 |
commit | 062dd0e24c283f210216ede06bbde0ed72c7ed25 (patch) | |
tree | a917e975f1f5d4c144ecad2c799cf58764a1f592 /src/signal.cpp | |
parent | a2d6961ab3c9aa43b95dfe9fa4699d290e5627e2 (diff) | |
download | openttd-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.cpp | 10 |
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); |