NIGHTSDRONE visual element positioning now works with scaling

This commit is contained in:
mazmazz 2018-08-11 22:41:58 -04:00
parent 4f9231b7a5
commit 79c042ca09
1 changed files with 2 additions and 2 deletions

View File

@ -7935,8 +7935,8 @@ void P_MobjThinker(mobj_t *mobj)
sparkleoffset = goaloffset + FixedMul(15*FRACUNIT, mobj->scale);
}
P_TeleportMove(goalpost, mobj->x, mobj->y, mobj->z + FixedMul(goaloffset, mobj->scale));
P_TeleportMove(sparkle, mobj->x, mobj->y, mobj->z + FixedMul(sparkleoffset, mobj->scale));
P_TeleportMove(goalpost, mobj->x, mobj->y, mobj->z + goaloffset);
P_TeleportMove(sparkle, mobj->x, mobj->y, mobj->z + sparkleoffset);
}
else if (goalpost->x != mobj->x || goalpost->y != mobj->y)
{