From b4ef380c49c2dfc78c7bd25a8ebc15d7a27b7243 Mon Sep 17 00:00:00 2001 From: skidd13 Date: Sun, 22 Jun 2008 15:41:38 +0000 Subject: (svn r13607) -Fix (r13606): some coding style issues got fixed but some got/stayed broken --- src/core/random_func.hpp | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'src/core/random_func.hpp') 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. -- cgit v1.2.3-54-g00ecf