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 | 6169c3fc17861120ed1454843d0966394ccd900b (patch) | |
tree | 5108d49e47c818fec8c5b29f346e207dde9f22a7 /src/core/random_func.hpp | |
parent | 8b7d893d85d2493548c023000fca99b1ce16b5f2 (diff) | |
download | openttd-6169c3fc17861120ed1454843d0966394ccd900b.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. |