Don't send a 0-length command to cgame during map_restart.

Fixes Bugzilla #3965.
This commit is contained in:
Ryan C. Gordon 2009-09-15 06:15:00 +00:00
parent 62ea802cea
commit 6978dcf645

View file

@ -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;
}