From 460195424807f78a704483efba0e59149addd38c Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 3 Jan 2013 02:18:19 +0000 Subject: [PATCH] - Added CHANGELEVEL_PRERAISEWEAPON flag for use with ACS's ChangeLevel. SVN r4014 (trunk) --- src/g_level.cpp | 4 ++++ src/g_level.h | 1 + 2 files changed, 5 insertions(+) diff --git a/src/g_level.cpp b/src/g_level.cpp index ebd19074a..24c43defd 100644 --- a/src/g_level.cpp +++ b/src/g_level.cpp @@ -882,6 +882,10 @@ void G_DoLoadLevel (int position, bool autosave) { level.flags2 &= ~LEVEL2_NOMONSTERS; } + if (changeflags & CHANGELEVEL_PRERAISEWEAPON) + { + level.flags2 |= LEVEL2_PRERAISEWEAPON; + } level.maptime = 0; P_SetupLevel (level.mapname, position); diff --git a/src/g_level.h b/src/g_level.h index 53b7cbf59..cdac4b862 100644 --- a/src/g_level.h +++ b/src/g_level.h @@ -500,6 +500,7 @@ enum CHANGELEVEL_CHANGESKILL = 8, CHANGELEVEL_NOINTERMISSION = 16, CHANGELEVEL_RESETHEALTH = 32, + CHANGELEVEL_PRERAISEWEAPON = 64, }; void G_ChangeLevel(const char *levelname, int position, int flags, int nextSkill=-1);