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
1 changed files with 2 additions and 0 deletions

View File

@ -339,6 +339,8 @@ rescan:
// clear notify lines and outgoing commands before passing // clear notify lines and outgoing commands before passing
// the restart to the cgame // the restart to the cgame
Con_ClearNotify(); 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 ) ); Com_Memset( cl.cmds, 0, sizeof( cl.cmds ) );
return qtrue; return qtrue;
} }