From 0d575a20cc6da6c67fe3d7864255a32dc99d80bf Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 12 Jan 2017 01:11:26 +0100 Subject: [PATCH] - added new PRINTNAME_ constants for retrieving next and secret next level. --- src/p_acs.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/p_acs.cpp b/src/p_acs.cpp index 15bb8d0b49..3fb7ea314d 100644 --- a/src/p_acs.cpp +++ b/src/p_acs.cpp @@ -6145,6 +6145,8 @@ enum PRINTNAME_LEVELNAME = -1, PRINTNAME_LEVEL = -2, PRINTNAME_SKILL = -3, + PRINTNAME_NEXTLEVEL = -4, + PRINTNAME_NEXTSECRET = -5, }; @@ -7888,6 +7890,22 @@ scriptwait: break; } + case PRINTNAME_NEXTLEVEL: + { + FString uppername = level.NextMap; + uppername.ToUpper(); + work += uppername; + break; + } + + case PRINTNAME_NEXTSECRET: + { + FString uppername = level.NextSecretMap; + uppername.ToUpper(); + work += uppername; + break; + } + case PRINTNAME_SKILL: work += G_SkillName(); break;