git-svn-id: https://svn.eduke32.com/eduke32@993 1a8010ca-5511-0410-912e-c29ae57300e0

This commit is contained in:
terminx 2008-08-20 09:17:23 +00:00
parent b411c3b205
commit cbba90b7c2
2 changed files with 3 additions and 4 deletions

View file

@ -288,6 +288,7 @@ static int defsparser(scriptfile *script)
char *cmdtokptr;
while (1)
{
if (quitevent) return 0;
tokn = getatoken(script,basetokens,sizeof(basetokens)/sizeof(tokenlist));
cmdtokptr = script->ltextptr;
switch (tokn)

View file

@ -156,11 +156,9 @@ int kopen4loadfrommod(char *filename, char searchfirst)
static char fn[BMAX_PATH];
int r;
Bstrcpy(fn,mod_dir);
Bstrcat(fn,"/");
Bstrcat(fn,filename);
Bsprintf(fn,"%s/%s",mod_dir,filename);
r = kopen4load(fn,searchfirst);
if (r == -1)
if (r < 0)
r = kopen4load(filename,searchfirst);
return r;
}