1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-21 21:49:10 +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:
signde
2004-09-13 22:49:11 +00:00
parent 9258f81405
commit bb2f8d8d1a
8 changed files with 91 additions and 13 deletions

5
misc.c
View File

@@ -44,6 +44,11 @@ uint32 InteractiveRandom()
return _random_seeds[1][1] = ROR(s, 3);
}
uint InteractiveRandomRange(uint max)
{
return (uint16)InteractiveRandom() * max >> 16;
}
void InitPlayerRandoms()
{
int i;