mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 14:42:13 +00:00
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:
parent
a6b33d25f2
commit
246cd8147c
2 changed files with 2 additions and 4 deletions
|
@ -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] == '-')
|
||||
|
|
|
@ -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] == '-')
|
||||
|
|
Loading…
Reference in a new issue