Fix pathsearchmode in Mapster32 when using a .def which loads a .grp.

git-svn-id: https://svn.eduke32.com/eduke32@5389 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2015-10-20 07:15:08 +00:00
parent 0f427b8ebd
commit a94a292820

View file

@ -9186,6 +9186,7 @@ static int32_t parsegroupfiles(scriptfile *script)
case T_LOADGRP: case T_LOADGRP:
{ {
char *fn; char *fn;
int opathsearchmode = pathsearchmode;
pathsearchmode = 1; pathsearchmode = 1;
if (!scriptfile_getstring(script,&fn)) if (!scriptfile_getstring(script,&fn))
@ -9202,7 +9203,7 @@ static int32_t parsegroupfiles(scriptfile *script)
} }
} }
pathsearchmode = 0; pathsearchmode = opathsearchmode;
} }
break; break;
case T_INCLUDE: case T_INCLUDE: