mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Put on player's center during this animation
This commit is contained in:
parent
85ee66f64a
commit
4b38c3e48e
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;
|
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->z = z;
|
||||||
cur->momx = cur->momy = 0;
|
cur->momx = cur->momy = 0;
|
||||||
cur->angle += ANGLE_90;
|
cur->angle += ANGLE_90;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue