Fix a really really stupid bug.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5958 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2021-07-06 16:46:38 +00:00
parent a6b33d25f2
commit 246cd8147c
2 changed files with 2 additions and 4 deletions

View File

@ -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] == '-')

View File

@ -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] == '-')