r1083 - trunk/code/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Wed May 9 21:39:58 EDT 2007
Author: tjw
Date: 2007-05-09 21:39:58 -0400 (Wed, 09 May 2007)
New Revision: 1083
Modified:
trunk/code/server/sv_main.c
Log:
* (bug 3066) rcon rate-limiting was not compatible with the eventual
integer overflow in Com_Milliseconds() (R1CH)
Modified: trunk/code/server/sv_main.c
===================================================================
--- trunk/code/server/sv_main.c 2007-05-02 22:45:50 UTC (rev 1082)
+++ trunk/code/server/sv_main.c 2007-05-10 01:39:58 UTC (rev 1083)
@@ -461,7 +461,7 @@
// TTimo - https://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=534
time = Com_Milliseconds();
- if (time<(lasttime+500)) {
+ if ( (unsigned)( time - lasttime ) < 500u ) {
return;
}
lasttime = time;
More information about the quake3-commits
mailing list