diff options
author | signde <signde@openttd.org> | 2004-09-13 22:49:11 +0000 |
---|---|---|
committer | signde <signde@openttd.org> | 2004-09-13 22:49:11 +0000 |
commit | bb2f8d8d1abf3ed4951eea13361d64127e4a6b8c (patch) | |
tree | 02ce8b5c8de35962f0c0bf28891aae99421d0ea7 /macros.h | |
parent | 9258f81405dd8080737d45fc72b365eac4154749 (diff) | |
download | openttd-bb2f8d8d1abf3ed4951eea13361d64127e4a6b8c.tar.xz |
(svn r240) -Fix: desync on subsidy generation
-Fix: sometimes commands got executed to early on some clients
-Feature: universal event packets for transmitting subsidys
Diffstat (limited to 'macros.h')
-rw-r--r-- | macros.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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)) |