(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

View File

@@ -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();