mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-04-05 01:41:39 +00:00
Put on player's center during this animation
This commit is contained in:
parent
0dbd48b9da
commit
2e8f513eb5
1 changed files with 4 additions and 0 deletions
|
@ -2966,6 +2966,10 @@ static void K_MoveHeldObjects(player_t *player)
|
|||
z = cur->ceilingz - cur->height;
|
||||
}
|
||||
}
|
||||
|
||||
// Center it during the scale up animation
|
||||
z += (FixedMul(mobjinfo[cur->type].height, player->mo->scale - cur->scale)>>1) * P_MobjFlip(cur);
|
||||
|
||||
cur->z = z;
|
||||
cur->momx = cur->momy = 0;
|
||||
cur->angle += ANGLE_90;
|
||||
|
|
Loading…
Reference in a new issue