mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r5088) - Add another set of parentheses, missed in r5085, somehow... (thanks ASM)
This commit is contained in:
parent
ce90b70a41
commit
91de9b7105
2
macros.h
2
macros.h
@ -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)))
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user