- handle 2 dead .def commands.

This commit is contained in:
Christoph Oelckers 2021-04-13 18:16:34 +02:00
parent afb2cd3b82
commit 2761ced670
2 changed files with 7 additions and 22 deletions

View file

@ -337,6 +337,12 @@ static int32_t defsparser(scriptfile *script)
case T_2DCOL: case T_2DCOL:
parseSkip<4>(*script, pos); parseSkip<4>(*script, pos);
break; break;
case T_CUTSCENE:
case T_ANIMSOUNDS:
case T_NEWGAMECHOICES: // stub
parseEmptyBlock(*script, pos);
break;
case T_DEFINE: case T_DEFINE:
parseDefine(*script, pos); parseDefine(*script, pos);
break; break;
@ -1508,23 +1514,6 @@ static int32_t defsparser(scriptfile *script)
} }
break; break;
case T_CUTSCENE:
case T_ANIMSOUNDS:
{
FScanner::SavedPos dummy;
static const tokenlist dummytokens[] = { { "id", T_ID }, };
if (scriptfile_getstring(script, nullptr)) break;
if (scriptfile_getbraces(script,&dummy)) break;
while (!scriptfile_endofblock(script, dummy))
{
// XXX?
getatoken(script,dummytokens,sizeof(dummytokens)/sizeof(dummytokens));
}
}
break;
case T_TEXHITSCANRANGE: case T_TEXHITSCANRANGE:
parseTexHitscanRange(*script, pos); parseTexHitscanRange(*script, pos);
break; break;
@ -2292,10 +2281,6 @@ static int32_t defsparser(scriptfile *script)
} }
} }
break; break;
case T_NEWGAMECHOICES: // stub
parseNewGameChoices(*script, pos);
break;
case T_RFFDEFINEID: case T_RFFDEFINEID:
parseRffDefineId(*script, pos); parseRffDefineId(*script, pos);
break; break;

View file

@ -670,7 +670,7 @@ void parseRffDefineId(FScanner& sc, FScriptPosition& pos)
// //
//=========================================================================== //===========================================================================
void parseNewGameChoices(FScanner& sc, FScriptPosition& pos) void parseEmptyBlock(FScanner& sc, FScriptPosition& pos)
{ {
FScanner::SavedPos blockend; FScanner::SavedPos blockend;