changed DP_SMALLMEMORY compiles to use the standard NET_MAXMESSAGE value
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 25 Jan 2010 19:51:58 +0000 (19:51 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 25 Jan 2010 19:51:58 +0000 (19:51 +0000)
because otherwise they can not play back demos

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9858 d7cf8633-e32d-0410-b094-e92efae38249

cl_parse.c
csprogs.c
quakedef.h

index 81e08aa..7a1ef5d 100644 (file)
@@ -1380,7 +1380,7 @@ void CL_StopDownload(int size, int crc)
 void CL_ParseDownload(void)
 {
        int i, start, size;
-       unsigned char data[NET_MAXMESSAGE];
+       static unsigned char data[NET_MAXMESSAGE];
        start = MSG_ReadLong();
        size = (unsigned short)MSG_ReadShort();
 
index 42ee155..a30dd10 100644 (file)
--- a/csprogs.c
+++ b/csprogs.c
@@ -946,7 +946,7 @@ void CL_VM_Init (void)
                if(cls.demo_lastcsprogssize != csprogsdatasize || cls.demo_lastcsprogscrc != csprogsdatacrc)
                {
                        int i;
-                       char buf[NET_MAXMESSAGE];
+                       static char buf[NET_MAXMESSAGE];
                        sizebuf_t sb;
                        unsigned char *demobuf; fs_offset_t demofilesize;
 
index 4c75fc1..9c62b5d 100644 (file)
@@ -65,7 +65,7 @@ extern char engineversion[128];
 #define        CMDBUFSIZE                              131072
 #define        MAX_ARGS                                80
 
-#define        NET_MAXMESSAGE                  32768
+#define        NET_MAXMESSAGE                  65536
 #define        MAX_PACKETFRAGMENT              1024
 #define        MAX_EDICTS                              4096
 #define        MAX_MODELS                              1024