diff options
author | skidd13 <skidd13@openttd.org> | 2008-06-22 15:41:38 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2008-06-22 15:41:38 +0000 |
commit | b4ef380c49c2dfc78c7bd25a8ebc15d7a27b7243 (patch) | |
tree | 5108d49e47c818fec8c5b29f346e207dde9f22a7 /src/core/random_func.hpp | |
parent | 640e5478862e3b83d85db6332e0d82a45a95e4ed (diff) | |
download | openttd-b4ef380c49c2dfc78c7bd25a8ebc15d7a27b7243.tar.xz |
(svn r13607) -Fix (r13606): some coding style issues got fixed but some got/stayed broken
Diffstat (limited to 'src/core/random_func.hpp')
-rw-r--r-- | src/core/random_func.hpp | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/src/core/random_func.hpp b/src/core/random_func.hpp index 18cde93d3..d77d38906 100644 --- a/src/core/random_func.hpp +++ b/src/core/random_func.hpp @@ -59,12 +59,26 @@ void SetRandomSeed(uint32 seed); #define RandomRange(max) DoRandomRange(max, __LINE__, __FILE__) uint DoRandomRange(uint max, int line, const char *file); #else - static FORCEINLINE uint32 Random() { return _random.Next(); } - static FORCEINLINE uint32 RandomRange(uint16 max) { return _random.Next(max); } + static FORCEINLINE uint32 Random() + { + return _random.Next(); + } + + static FORCEINLINE uint32 RandomRange(uint16 max) + { + return _random.Next(max); + } #endif -static FORCEINLINE uint32 InteractiveRandom() { return _interactive_random.Next(); } -static FORCEINLINE uint32 InteractiveRandomRange(uint16 max) { return _interactive_random.Next(max); } +static FORCEINLINE uint32 InteractiveRandom() +{ + return _interactive_random.Next(); +} + +static FORCEINLINE uint32 InteractiveRandomRange(uint16 max) +{ + return _interactive_random.Next(max); +} /** * Checks if a given randomize-number is below a given probability. |