From 7d13d6cd3b070de29f1ec15136b3a59b65a11952 Mon Sep 17 00:00:00 2001 From: "Tony J. White =" Date: Thu, 10 May 2007 01:39:58 +0000 Subject: [PATCH] * (bug 3066) rcon rate-limiting was not compatible with the eventual integer overflow in Com_Milliseconds() (R1CH) --- code/server/sv_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/server/sv_main.c b/code/server/sv_main.c index ed07b87b..8906d003 100644 --- a/code/server/sv_main.c +++ b/code/server/sv_main.c @@ -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;