- fixed: Levels could be exited multiple times, triggering special exit actions for each one.

This commit is contained in:
Christoph Oelckers 2015-07-15 09:25:04 +02:00
parent b5033d2940
commit 19d15d7fc8

View file

@ -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)
{