[quake3-commits] r1601 - trunk/code/qcommon
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Mon Sep 14 19:56:09 EDT 2009
Author: icculus
Date: 2009-09-14 19:56:09 -0400 (Mon, 14 Sep 2009)
New Revision: 1601
Modified:
trunk/code/qcommon/cmd.c
Log:
Don't allow negative arguments to the "wait" console command.
Modified: trunk/code/qcommon/cmd.c
===================================================================
--- trunk/code/qcommon/cmd.c 2009-09-14 23:51:35 UTC (rev 1600)
+++ trunk/code/qcommon/cmd.c 2009-09-14 23:56:09 UTC (rev 1601)
@@ -52,6 +52,8 @@
void Cmd_Wait_f( void ) {
if ( Cmd_Argc() == 2 ) {
cmd_wait = atoi( Cmd_Argv( 1 ) );
+ if ( cmd_wait < 0 )
+ cmd_wait = 1; // ignore the argument
} else {
cmd_wait = 1;
}
@@ -176,7 +178,7 @@
while (cmd_text.cursize)
{
- if ( cmd_wait ) {
+ if ( cmd_wait > 0 ) {
// skip out while text still remains in buffer, leaving it
// for next frame
cmd_wait--;
More information about the quake3-commits
mailing list