mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 15:02:01 +00:00
- fixed: A new episode definition for a map that already had one defined did not replace the old definition.
- fixed: Skipping the skill menu did not work because it checked the number of episodes, not skills. SVN r3017 (trunk)
This commit is contained in:
parent
d9c811fc61
commit
5bc4bc90bb
2 changed files with 8 additions and 2 deletions
|
@ -1626,7 +1626,13 @@ void FMapInfoParser::ParseEpisodeInfo ()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
FEpisode *epi = &AllEpisodes[AllEpisodes.Reserve(1)];
|
// Only allocate a new entry if this doesn't replace an existing episode.
|
||||||
|
if (i >= AllEpisodes.Size())
|
||||||
|
{
|
||||||
|
i = AllEpisodes.Reserve(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
FEpisode *epi = &AllEpisodes[i];
|
||||||
|
|
||||||
epi->mEpisodeMap = map;
|
epi->mEpisodeMap = map;
|
||||||
epi->mEpisodeName = name;
|
epi->mEpisodeName = name;
|
||||||
|
|
|
@ -1327,7 +1327,7 @@ void M_StartupSkillMenu(FGameStartup *gs)
|
||||||
}
|
}
|
||||||
if (AllEpisodes[gs->Episode].mNoSkill || AllSkills.Size() == 1)
|
if (AllEpisodes[gs->Episode].mNoSkill || AllSkills.Size() == 1)
|
||||||
{
|
{
|
||||||
ld->mAutoselect = firstitem + MIN(2u, AllEpisodes.Size()-1);
|
ld->mAutoselect = firstitem + MIN(2u, AllSkills.Size()-1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue