]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
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 81e08aaefe86bc5bc53e9c0678ccbeb9ac58f384..7a1ef5de1e1e7cdfa90f0df6d4dbcbd9ec91a258 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 42ee15559885f8494b9cd73e6ca3c3299cc671d2..a30dd109d3ffe7bf8e6e139b0a579d97d9f7b7c4 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 4c75fc10082ece8821636fb9a9696b1a7b90ec91..9c62b5d93d1fc8a01e08cd96bba5972dcb7143a1 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