summaryrefslogtreecommitdiff
path: root/source/mvd_parse.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2009-04-22 23:40:03 +0000
committerAndrey Nazarov <skuller@skuller.net>2009-04-22 23:40:03 +0000
commit275f310df767a57b8cf409acdcbd14c63cb90df9 (patch)
tree3b59e2751c32b2f15fcfabb1af8b03e702cd5230 /source/mvd_parse.c
parent385ccd0e9a518933019a8c6f1fecad2ae660b766 (diff)
Don't execute ‘cl_beginmapcmd’, ‘cl_changemapcmd’ and ‘cl_disconnectcmd’ triggers when playing back demos.
Fixed automatic restart of sound subsystem after cvar change not working randomly. Don't crash in CL_Disconnect() on dedicated server exit. Added ‘sv_redirect_address’ variable. Fixed ‘\r’ char not stripped properly from filename when processing ‘\include’ directive in AC config files. Made AC config parser compliant with reference format as defined by R1Q2 implementation. Updated documentation.
Diffstat (limited to 'source/mvd_parse.c')
-rw-r--r--source/mvd_parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/mvd_parse.c b/source/mvd_parse.c
index dc8b52a..1ac3339 100644
--- a/source/mvd_parse.c
+++ b/source/mvd_parse.c
@@ -871,7 +871,7 @@ static void MVD_ParseFrame( mvd_t *mvd ) {
if( length < 0 || msg_read.readcount + length > msg_read.cursize ) {
MVD_Destroyf( mvd, "%s: read past end of message", __func__ );
}
- if( length > MAX_MAP_AREAS/8 ) {
+ if( length > MAX_MAP_PORTAL_BYTES ) {
MVD_Destroyf( mvd, "%s: bad portalbits length: %d", __func__, length );
}
CM_SetPortalStates( &mvd->cm, msg_read.data +