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 /functions.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 'functions.h')
-rw-r--r-- | functions.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/functions.h b/functions.h index ab9ec0b4e..7d729c0ee 100644 --- a/functions.h +++ b/functions.h @@ -100,6 +100,8 @@ uint RandomRange(uint max); void InitPlayerRandoms(); uint32 InteractiveRandom(); /* Used for random sequences that are not the same on the other end of the multiplayer link */ +uint InteractiveRandomRange(uint max); + void SetDate(uint date); /* facedraw.c */ void DrawPlayerFace(uint32 face, int color, int x, int y); @@ -132,6 +134,7 @@ void NetworkListen(); void NetworkInitialize(); void NetworkShutdown(); void NetworkSendCommand(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallback *callback); +void NetworkSendEvent(uint16 type, uint16 data_len, void * data); void NetworkStartSync(bool fcreset); void NetworkClose(bool client); void NetworkSendReadyPacket(); |