aboutsummaryrefslogtreecommitdiffstats
path: root/code
diff options
context:
space:
mode:
authoricculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-09-15 06:15:00 +0000
committericculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-09-15 06:15:00 +0000
commitb908a71b0bcb9249c3b89022b388f92833e92bb1 (patch)
treeb1a517a4848a60a727d2c4c8d37722c6507f5143 /code
parent48f8ebbe2e403e9e28394be162476886e42307ce (diff)
downloadioquake3-aero-b908a71b0bcb9249c3b89022b388f92833e92bb1.tar.gz
ioquake3-aero-b908a71b0bcb9249c3b89022b388f92833e92bb1.zip
Don't send a 0-length command to cgame during map_restart.
Fixes Bugzilla #3965. git-svn-id: svn://svn.icculus.org/quake3/trunk@1621 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r--code/client/cl_cgame.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/code/client/cl_cgame.c b/code/client/cl_cgame.c
index ef15798..42fcdb7 100644
--- a/code/client/cl_cgame.c
+++ b/code/client/cl_cgame.c
@@ -339,6 +339,8 @@ rescan:
// clear notify lines and outgoing commands before passing
// the restart to the cgame
Con_ClearNotify();
+ // reparse the string, because Con_ClearNotify() may have done another Cmd_TokenizeString()
+ Cmd_TokenizeString( s );
Com_Memset( cl.cmds, 0, sizeof( cl.cmds ) );
return qtrue;
}