fixed bug with using too large scroll delay value on smaller playfields
[rocksndiamonds.git] / src / netserv.h
index d69deca7a7725962383fd2aeed74d8591bca96b1..3eee34e69260a36294e358e591174ab686a7f9e0 100644 (file)
 #define OP_STOP_PLAYING                11
 #define OP_MOVE_PLAYER         12
 #define OP_BROADCAST_MESSAGE   13
+#define OP_LEVEL_FILE          14
 
 #define MAX_BUFFER_SIZE                4096
+#define MAX_PACKET_SIZE                1048576
 
 
 struct NetworkBuffer
@@ -56,7 +58,7 @@ int putNetwork32BitInteger(byte *, int);
 char *getNetworkString(byte *);
 int putNetworkString(byte *, char *);
 
-struct NetworkBuffer *newNetworkBuffer();
+struct NetworkBuffer *newNetworkBuffer(void);
 void initNetworkBufferForReceiving(struct NetworkBuffer *);
 void initNetworkBufferForReading(struct NetworkBuffer *);
 void initNetworkBufferForWriting(struct NetworkBuffer *, int, int);