mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-13 19:40:43 +00:00
- SW: fixed episode indexing resulting in bad display on the automap.
This commit is contained in:
parent
78b8f77850
commit
90b7524706
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue