mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-13 05:41:10 +00:00
Fixed wrong ChangeLevel export to ZScript.
This commit is contained in:
parent
a54cb3178d
commit
9bc7b6b215
1 changed files with 2 additions and 2 deletions
|
@ -699,7 +699,7 @@ void G_ChangeLevel(const char *levelname, int position, int flags, int nextSkill
|
|||
}
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION_NATIVE(FLevelLocals, ChangeLevel, G_ChangeLevel)
|
||||
DEFINE_ACTION_FUNCTION(FLevelLocals, ChangeLevel)
|
||||
{
|
||||
PARAM_PROLOGUE;
|
||||
PARAM_STRING(levelname);
|
||||
|
@ -1310,7 +1310,7 @@ DEFINE_ACTION_FUNCTION(FLevelLocals, WorldDone)
|
|||
void G_DoWorldDone (void)
|
||||
{
|
||||
gamestate = GS_LEVEL;
|
||||
if (wminfo.next[0] == 0)
|
||||
if (nextlevel.IsEmpty())
|
||||
{
|
||||
// Don't crash if no next map is given. Just repeat the current one.
|
||||
Printf ("No next map specified.\n");
|
||||
|
|
Loading…
Reference in a new issue