mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
- Added CHANGELEVEL_PRERAISEWEAPON flag for use with ACS's ChangeLevel.
SVN r4014 (trunk)
This commit is contained in:
parent
787c338871
commit
4601954248
2 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue