diff options
author | peter1138 <peter1138@openttd.org> | 2006-06-03 19:23:14 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-06-03 19:23:14 +0000 |
commit | 40197e244c8c9a042abe8d9254cf3160175d933a (patch) | |
tree | 9ecf6657d7e0e6fd57fad74738d8800d37ceb451 /macros.h | |
parent | 70c6a0e4c45748f0d8145fdf5aca2e7529c7fdc0 (diff) | |
download | openttd-40197e244c8c9a042abe8d9254cf3160175d933a.tar.xz |
(svn r5088) - Add another set of parentheses, missed in r5085, somehow... (thanks ASM)
Diffstat (limited to 'macros.h')
-rw-r--r-- | macros.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -126,7 +126,7 @@ static inline int KillFirstBit2x64(int value) #define CHANCE16(a,b) ((uint16)Random() <= (uint16)((65536 * (a)) / (b))) -#define CHANCE16R(a,b,r) ((uint16)(r=Random()) <= (uint16)((65536 * a) / (b))) +#define CHANCE16R(a,b,r) ((uint16)(r=Random()) <= (uint16)((65536 * (a)) / (b))) #define CHANCE16I(a,b,v) ((uint16)(v) <= (uint16)((65536 * (a)) / (b))) |