* (bug 3066) rcon rate-limiting was not compatible with the eventual
integer overflow in Com_Milliseconds() (R1CH)
This commit is contained in:
1 parent
6f59617596
commit
7d13d6cd3b
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user