- treat configurations which load a secondary WAD on top of a primary IWAD like SVE to consider the secondary WAD an actual IWAD as well.

This fixes localization of the SVE menu.
This commit is contained in:
Christoph Oelckers 2019-07-15 20:48:00 +02:00
commit 8177583e2f
10 changed files with 27 additions and 19 deletions

View file

@ -323,7 +323,7 @@ bool FIntermissionActionTextscreen::ParseKey(FScanner &sc)
else
{
// only print an error if coming from a PWAD
if (Wads.GetLumpFile(sc.LumpNum) > Wads.GetIwadNum())
if (Wads.GetLumpFile(sc.LumpNum) > Wads.GetMaxIwadNum())
sc.ScriptMessage("Unknown text lump '%s'", sc.String);
mText.Format("Unknown text lump '%s'", sc.String);
}