mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 23:12:24 +00:00
- fixed: Levels could be exited multiple times, triggering special exit actions for each one.
This commit is contained in:
parent
b5033d2940
commit
19d15d7fc8
1 changed files with 4 additions and 0 deletions
|
@ -533,6 +533,10 @@ void G_ChangeLevel(const char *levelname, int position, int flags, int nextSkill
|
|||
Printf (TEXTCOLOR_RED "Unloading scripts cannot exit the level again.\n");
|
||||
return;
|
||||
}
|
||||
if (gameaction == ga_completed) // do not exit multiple times.
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (levelname == NULL || *levelname == 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue