mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
Cheap hack to let Mapster32 read the visibility parameter from gamestartup when parsing the CONs for sound definitions.
git-svn-id: https://svn.eduke32.com/eduke32@5595 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
798685ee80
commit
b53767000b
1 changed files with 11 additions and 0 deletions
|
@ -9192,6 +9192,8 @@ enum
|
||||||
T_RENAMEFILE,
|
T_RENAMEFILE,
|
||||||
T_GLOBALGAMEFLAGS,
|
T_GLOBALGAMEFLAGS,
|
||||||
|
|
||||||
|
T_GAMESTARTUP,
|
||||||
|
|
||||||
T_DUMMY,
|
T_DUMMY,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -9723,6 +9725,7 @@ static int32_t parseconsounds(scriptfile *script)
|
||||||
{ "define", T_DEFINE },
|
{ "define", T_DEFINE },
|
||||||
{ "#define", T_DEFINE },
|
{ "#define", T_DEFINE },
|
||||||
{ "definesound", T_DEFINESOUND },
|
{ "definesound", T_DEFINESOUND },
|
||||||
|
{ "gamestartup", T_GAMESTARTUP },
|
||||||
};
|
};
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
|
@ -9755,6 +9758,11 @@ static int32_t parseconsounds(scriptfile *script)
|
||||||
name,number,script->filename,scriptfile_getlinum(script,cmdtokptr));
|
name,number,script->filename,scriptfile_getlinum(script,cmdtokptr));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case T_GAMESTARTUP:
|
||||||
|
{
|
||||||
|
if (scriptfile_getsymbol(script, &g_visibility)) break;
|
||||||
|
break;
|
||||||
|
}
|
||||||
case T_DEFINESOUND:
|
case T_DEFINESOUND:
|
||||||
{
|
{
|
||||||
char *definedname, *filename;
|
char *definedname, *filename;
|
||||||
|
@ -9879,6 +9887,9 @@ static int32_t loadconsounds(const char *fn)
|
||||||
else
|
else
|
||||||
initprintf("Loaded %d sound definitions.\n", ret);
|
initprintf("Loaded %d sound definitions.\n", ret);
|
||||||
|
|
||||||
|
if (g_visibility != 512)
|
||||||
|
initprintf("Global visibility: %d\n", g_visibility);
|
||||||
|
|
||||||
scriptfile_close(script);
|
scriptfile_close(script);
|
||||||
scriptfile_clearsymbols();
|
scriptfile_clearsymbols();
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue