- Removed WARPF_MULHEIGHT. Enable its ability by default.

- WARPF_ADDHEIGHT will simply change HeightOffset from multiplying to adding by default.
This commit is contained in:
MajorCooke 2015-08-10 15:03:29 -05:00
parent 7e661dfe57
commit 54af1e379e
3 changed files with 1 additions and 3 deletions

View file

@ -199,7 +199,6 @@ enum WARPF
WARPF_USEPTR = 0x2000,
WARPF_USETID = 0x2000,
WARPF_ADDHEIGHT = 0x4000,
WARPF_MULHEIGHT = 0x8000,
};

View file

@ -698,7 +698,7 @@ int P_Thing_Warp(AActor *caller, AActor *reference, fixed_t xofs, fixed_t yofs,
{
zofs += reference->height + heightoffset;
}
else if (flags & WARPF_MULHEIGHT)
else
{
zofs += FixedMul(reference->height, heightoffset);
}

View file

@ -362,7 +362,6 @@ Const Int WARPF_BOB = 0x800;
Const Int WARPF_MOVEPTR = 0x1000;
Const Int WARPF_USETID = 0x2000;
Const Int WARPF_ADDHEIGHT = 0x4000;
Const Int WARPF_MULHEIGHT = 0x8000;
// flags for A_SetPitch/SetAngle/SetRoll
const int SPF_FORCECLAMP = 1;