mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-23 14:39:08 +00:00
(svn r240) -Fix: desync on subsidy generation
-Fix: sometimes commands got executed to early on some clients -Feature: universal event packets for transmitting subsidys
This commit is contained in:
1
macros.h
1
macros.h
@@ -170,6 +170,7 @@ static INLINE int FindFirstBit2x64(int value)
|
||||
|
||||
|
||||
#define CHANCE16(a,b) ((uint16)Random() <= (uint16)((65536 * a) / b))
|
||||
#define ICHANCE16(a,b) ((uint16)InteractiveRandom() <= (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))
|
||||
|
||||
|
Reference in New Issue
Block a user