From 6978dcf645875d3e8a7b965fe5e3f8307759ab1f Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 15 Sep 2009 06:15:00 +0000 Subject: [PATCH] Don't send a 0-length command to cgame during map_restart. Fixes Bugzilla #3965. --- 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 ef15798f..42fcdb74 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; }