From 246cd8147c573a271b735fb1dcc0ff3da35ed342 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 6 Jul 2021 16:46:38 +0000 Subject: [PATCH] Fix a really really stupid bug. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5958 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/sys_win.c | 3 +-- engine/common/sys_linux_threads.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/engine/client/sys_win.c b/engine/client/sys_win.c index 7aaee9cbc..7905e64e7 100644 --- a/engine/client/sys_win.c +++ b/engine/client/sys_win.c @@ -3017,8 +3017,7 @@ qboolean Sys_EngineMayUpdate(void) narrowen(enginebinary, sizeof(enginebinary), enginebinaryw); //if there's 3 consecutive digits or digit.digit then assume the user is doing their own versioning, and disallow engine updates (unless they use the -allowupdate arg). //(that or they ran one of our older builds directly) - s = COM_SkipPath(enginebinary); - while (*s) + for (s=COM_SkipPath(enginebinary); *s; s++) { if ( s[0] >= '0' && s[0] <= '9') if ((s[1] >= '0' && s[1] <= '9') || s[1] == '.' || s[1] == '_' || s[1] == '-') diff --git a/engine/common/sys_linux_threads.c b/engine/common/sys_linux_threads.c index 4705a4817..14b85179f 100644 --- a/engine/common/sys_linux_threads.c +++ b/engine/common/sys_linux_threads.c @@ -603,8 +603,7 @@ qboolean Sys_EngineMayUpdate(void) //if there's 3 consecutive digits or digit.digit then assume the user is doing their own versioning, and disallow engine updates (unless they use the -allowupdate arg). //(that or they ran one of our older builds directly) - s = COM_SkipPath(enginebinary); - while (*s) + for (s=COM_SkipPath(enginebinary); *s; s++) { if ( s[0] >= '0' && s[0] <= '9') if ((s[1] >= '0' && s[1] <= '9') || s[1] == '.' || s[1] == '_' || s[1] == '-')