- Added CHANGELEVEL_PRERAISEWEAPON flag for use with ACS's ChangeLevel.

SVN r4014 (trunk)
This commit is contained in:
Randy Heit 2013-01-03 02:18:19 +00:00
parent 787c338871
commit 4601954248
2 changed files with 5 additions and 0 deletions

View file

@ -882,6 +882,10 @@ void G_DoLoadLevel (int position, bool autosave)
{ {
level.flags2 &= ~LEVEL2_NOMONSTERS; level.flags2 &= ~LEVEL2_NOMONSTERS;
} }
if (changeflags & CHANGELEVEL_PRERAISEWEAPON)
{
level.flags2 |= LEVEL2_PRERAISEWEAPON;
}
level.maptime = 0; level.maptime = 0;
P_SetupLevel (level.mapname, position); P_SetupLevel (level.mapname, position);

View file

@ -500,6 +500,7 @@ enum
CHANGELEVEL_CHANGESKILL = 8, CHANGELEVEL_CHANGESKILL = 8,
CHANGELEVEL_NOINTERMISSION = 16, CHANGELEVEL_NOINTERMISSION = 16,
CHANGELEVEL_RESETHEALTH = 32, CHANGELEVEL_RESETHEALTH = 32,
CHANGELEVEL_PRERAISEWEAPON = 64,
}; };
void G_ChangeLevel(const char *levelname, int position, int flags, int nextSkill=-1); void G_ChangeLevel(const char *levelname, int position, int flags, int nextSkill=-1);