mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 04:00:42 +00:00
- added a "clearall" instruction to RMAPINFO.
Since, unlike GZDoom, this format is additive and uses defaults for map progression it would otherwise a bit tricky to compile new episodes without accidentally pulling in some original special features.
This commit is contained in:
parent
dfd47ea33a
commit
c1b4fdff83
1 changed files with 10 additions and 0 deletions
|
@ -1162,6 +1162,16 @@ void FMapInfoParser::ParseMapInfo (int lump, MapRecord &gamedefaults, MapRecord
|
|||
{
|
||||
ParseGameInfo();
|
||||
}
|
||||
else if (sc.Compare("clearall"))
|
||||
{
|
||||
// clears all map and progression related data, so that a mod can start with a clean slate.
|
||||
mapList.Clear();
|
||||
volumes.Clear();
|
||||
clusters.Clear();
|
||||
globalCutscenes.DefaultMapIntro = {};
|
||||
globalCutscenes.DefaultMapOutro = {};
|
||||
globalCutscenes.DefaultGameover = {};
|
||||
}
|
||||
else
|
||||
{
|
||||
sc.ScriptError("%s: Unknown top level keyword", sc.String);
|
||||
|
|
Loading…
Reference in a new issue