From b908a71b0bcb9249c3b89022b388f92833e92bb1 Mon Sep 17 00:00:00 2001 From: icculus Date: Tue, 15 Sep 2009 06:15:00 +0000 Subject: 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 --- code/client/cl_cgame.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit v1.2.3