mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 21:11:39 +00:00
Applied _mental_'s suggestion
This commit is contained in:
parent
af9478f818
commit
e2d874e343
1 changed files with 4 additions and 2 deletions
|
@ -694,13 +694,15 @@ int P_Thing_Warp(AActor *caller, AActor *reference, fixed_t xofs, fixed_t yofs,
|
||||||
fixed_t oldz = caller->z;
|
fixed_t oldz = caller->z;
|
||||||
zofs += FixedMul(reference->height, heightoffset);
|
zofs += FixedMul(reference->height, heightoffset);
|
||||||
|
|
||||||
const fixed_t rad = FixedMul(radiusoffset, reference->radius);
|
|
||||||
const angle_t fineangle = angle >> ANGLETOFINESHIFT;
|
|
||||||
|
|
||||||
if (!(flags & WARPF_ABSOLUTEANGLE))
|
if (!(flags & WARPF_ABSOLUTEANGLE))
|
||||||
{
|
{
|
||||||
angle += (flags & WARPF_USECALLERANGLE) ? caller->angle : reference->angle;
|
angle += (flags & WARPF_USECALLERANGLE) ? caller->angle : reference->angle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const fixed_t rad = FixedMul(radiusoffset, reference->radius);
|
||||||
|
const angle_t fineangle = angle >> ANGLETOFINESHIFT;
|
||||||
|
|
||||||
if (!(flags & WARPF_ABSOLUTEPOSITION))
|
if (!(flags & WARPF_ABSOLUTEPOSITION))
|
||||||
{
|
{
|
||||||
if (!(flags & WARPF_ABSOLUTEOFFSET))
|
if (!(flags & WARPF_ABSOLUTEOFFSET))
|
||||||
|
|
Loading…
Reference in a new issue