From 9bc7b6b215d1482e250af40ef6f828e896735885 Mon Sep 17 00:00:00 2001 From: Chronos Ouroboros Date: Mon, 14 Dec 2020 19:40:01 +0100 Subject: [PATCH] Fixed wrong ChangeLevel export to ZScript. --- src/g_level.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/g_level.cpp b/src/g_level.cpp index a738710fd..40e400032 100644 --- a/src/g_level.cpp +++ b/src/g_level.cpp @@ -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");