mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-31 04:50:48 +00:00
- Removed WARPF_ADDHEIGHT.
This commit is contained in:
parent
54af1e379e
commit
87cc3f77f9
3 changed files with 1 additions and 10 deletions
|
@ -198,7 +198,6 @@ enum WARPF
|
||||||
WARPF_MOVEPTR = 0x1000,
|
WARPF_MOVEPTR = 0x1000,
|
||||||
WARPF_USEPTR = 0x2000,
|
WARPF_USEPTR = 0x2000,
|
||||||
WARPF_USETID = 0x2000,
|
WARPF_USETID = 0x2000,
|
||||||
WARPF_ADDHEIGHT = 0x4000,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -693,15 +693,8 @@ int P_Thing_Warp(AActor *caller, AActor *reference, fixed_t xofs, fixed_t yofs,
|
||||||
fixed_t oldy = caller->y;
|
fixed_t oldy = caller->y;
|
||||||
fixed_t oldz = caller->z;
|
fixed_t oldz = caller->z;
|
||||||
|
|
||||||
|
|
||||||
if (flags & WARPF_ADDHEIGHT)
|
|
||||||
{
|
|
||||||
zofs += reference->height + heightoffset;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
zofs += FixedMul(reference->height, heightoffset);
|
zofs += FixedMul(reference->height, heightoffset);
|
||||||
}
|
|
||||||
|
|
||||||
if (!(flags & WARPF_ABSOLUTEANGLE))
|
if (!(flags & WARPF_ABSOLUTEANGLE))
|
||||||
{
|
{
|
||||||
|
|
|
@ -361,7 +361,6 @@ Const Int WARPF_ABSOLUTEPOSITION = 0x400;
|
||||||
Const Int WARPF_BOB = 0x800;
|
Const Int WARPF_BOB = 0x800;
|
||||||
Const Int WARPF_MOVEPTR = 0x1000;
|
Const Int WARPF_MOVEPTR = 0x1000;
|
||||||
Const Int WARPF_USETID = 0x2000;
|
Const Int WARPF_USETID = 0x2000;
|
||||||
Const Int WARPF_ADDHEIGHT = 0x4000;
|
|
||||||
|
|
||||||
// flags for A_SetPitch/SetAngle/SetRoll
|
// flags for A_SetPitch/SetAngle/SetRoll
|
||||||
const int SPF_FORCECLAMP = 1;
|
const int SPF_FORCECLAMP = 1;
|
||||||
|
|
Loading…
Reference in a new issue