From bb2f8d8d1abf3ed4951eea13361d64127e4a6b8c Mon Sep 17 00:00:00 2001 From: signde Date: Mon, 13 Sep 2004 22:49:11 +0000 Subject: (svn r240) -Fix: desync on subsidy generation -Fix: sometimes commands got executed to early on some clients -Feature: universal event packets for transmitting subsidys --- functions.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'functions.h') 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(); -- cgit v1.2.3-54-g00ecf