From bd10f65dfc1dc0c58a6c83c4c8cb6b1c40511b6d Mon Sep 17 00:00:00 2001 From: Mark Olsen Date: Mon, 3 Dec 2007 11:38:58 +0000 Subject: [PATCH] Someone forgot a static keyword in Sys_Milliseconds(), making the comparison base always a random stack value. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2801 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/sv_sys_unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/server/sv_sys_unix.c b/engine/server/sv_sys_unix.c index 5251ea710..2dac9bcb8 100644 --- a/engine/server/sv_sys_unix.c +++ b/engine/server/sv_sys_unix.c @@ -170,7 +170,7 @@ unsigned int Sys_Milliseconds (void) { struct timeval tp; struct timezone tzp; - int secbase; + static int secbase; gettimeofday(&tp, &tzp);