* (bug 3066) rcon rate-limiting was not compatible with the eventual

integer overflow in Com_Milliseconds() (R1CH)
This commit is contained in:
Tony J. White = 2007-05-10 01:39:58 +00:00
parent 6f59617596
commit 7d13d6cd3b

View file

@ -461,7 +461,7 @@ void SVC_RemoteCommand( netadr_t from, msg_t *msg ) {
// 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;