[quake3-commits] r1621 - trunk/code/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Sep 15 02:15:00 EDT 2009


Author: icculus
Date: 2009-09-15 02:15:00 -0400 (Tue, 15 Sep 2009)
New Revision: 1621

Modified:
   trunk/code/client/cl_cgame.c
Log:
Don't send a 0-length command to cgame during map_restart.

  Fixes Bugzilla #3965.


Modified: trunk/code/client/cl_cgame.c
===================================================================
--- trunk/code/client/cl_cgame.c	2009-09-15 06:12:42 UTC (rev 1620)
+++ trunk/code/client/cl_cgame.c	2009-09-15 06:15:00 UTC (rev 1621)
@@ -339,6 +339,8 @@
 		// 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;
 	}



More information about the quake3-commits mailing list