mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-15 09:01:24 +00:00
- Fixed compatibility flags not working in scripting.
This commit is contained in:
parent
80b3f8dcbe
commit
6a3f2b59cd
5 changed files with 6 additions and 6 deletions
|
@ -195,7 +195,7 @@ extend class Actor
|
|||
aimtarget.Height = Height;
|
||||
|
||||
bool shootmode = ((flags & MSF_Classic) || // Flag explicitly set, or no flags and compat options
|
||||
(flags == 0 && CurState.bDehacked && (Level.compatflags & COMPATF_MUSHROOM)));
|
||||
(flags == 0 && CurState.bDehacked && (compatflags & COMPATF_MUSHROOM)));
|
||||
|
||||
for (i = -numspawns; i <= numspawns; i += 8)
|
||||
{
|
||||
|
|
|
@ -86,7 +86,7 @@ extend class Actor
|
|||
}
|
||||
|
||||
// [RH] make this optional
|
||||
if (limit < 0 && (Level.compatflags & COMPATF_LIMITPAIN))
|
||||
if (limit < 0 && (compatflags & COMPATF_LIMITPAIN))
|
||||
limit = 21;
|
||||
|
||||
if (limit > 0)
|
||||
|
|
|
@ -634,7 +634,7 @@ extend class Actor
|
|||
Actor mo;
|
||||
double spawnz = 0;
|
||||
|
||||
if (!(Level.compatflags & COMPATF_NOTOSSDROPS))
|
||||
if (!(compatflags & COMPATF_NOTOSSDROPS))
|
||||
{
|
||||
int style = sv_dropstyle;
|
||||
if (style == 0)
|
||||
|
@ -655,7 +655,7 @@ extend class Actor
|
|||
{
|
||||
mo.bDropped = true;
|
||||
mo.bNoGravity = false; // [RH] Make sure it is affected by gravity
|
||||
if (!(Level.compatflags & COMPATF_NOTOSSDROPS))
|
||||
if (!(compatflags & COMPATF_NOTOSSDROPS))
|
||||
{
|
||||
mo.TossItem ();
|
||||
}
|
||||
|
|
|
@ -1944,7 +1944,7 @@ class PlayerPawn : Actor
|
|||
|
||||
override int GetMaxHealth(bool withupgrades) const
|
||||
{
|
||||
int ret = MaxHealth > 0? MaxHealth : ((Level.compatflags & COMPATF_DEHHEALTH)? 100 : deh.MaxHealth);
|
||||
int ret = MaxHealth > 0? MaxHealth : ((compatflags & COMPATF_DEHHEALTH)? 100 : deh.MaxHealth);
|
||||
if (withupgrades) ret += stamina + BonusHealth;
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -347,7 +347,7 @@ class Minotaur : Actor
|
|||
}
|
||||
else
|
||||
{
|
||||
if (Floorclip > 0 && (Level.compatflags & COMPAT_MINOTAUR))
|
||||
if (Floorclip > 0 && (compatflags & COMPAT_MINOTAUR))
|
||||
{
|
||||
// only play the sound.
|
||||
A_StartSound ("minotaur/fx2hit", CHAN_WEAPON);
|
||||
|
|
Loading…
Reference in a new issue