- SW: fixed episode indexing resulting in bad display on the automap.

This commit is contained in:
Christoph Oelckers 2021-08-24 09:57:36 +02:00
parent 78b8f77850
commit 90b7524706

View file

@ -509,7 +509,7 @@ void LoadCustomInfoFromScript(const char *filename)
curep = sc.Number;
if (sc.ParseError) curep = -1;
else if ((unsigned)--curep >= 2u)
else if ((unsigned)curep > 2u)
{
sc.ScriptMessage("Episode number %d not in range 1-2\n", curep + 1);
curep = -1;
@ -808,8 +808,8 @@ void LoadCustomInfoFromScript(const char *filename)
break;
}
}
auto vol0 = MustFindVolume(0);
auto vol1 = MustFindVolume(1);
auto vol0 = MustFindVolume(1);
auto vol1 = MustFindVolume(2);
auto map1 = FindMapByLevelNum(1);
auto map5 = FindMapByLevelNum(5);
if (vol0 && map1) vol0->startmap = map1->labelName;