mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-01 17:01:24 +00:00
Do pusher drawangle changes in demos
This commit is contained in:
parent
54dc82452c
commit
882deda563
1 changed files with 9 additions and 10 deletions
19
src/p_spec.c
19
src/p_spec.c
|
|
@ -9268,16 +9268,15 @@ void T_Pusher(pusher_t *p)
|
|||
thing->player->carry = CR_SLIDING;
|
||||
thing->angle = R_PointToAngle2(0, 0, xspeed, yspeed);
|
||||
|
||||
|
||||
if (!demo.playback)
|
||||
{
|
||||
angle_t angle = thing->player->drawangle;
|
||||
if (thing->angle - angle > ANGLE_180)
|
||||
thing->player->drawangle = angle - (angle - thing->angle) / 8;
|
||||
else
|
||||
thing->player->drawangle = angle + (thing->angle - angle) / 8;
|
||||
//P_SetPlayerAngle(thing->player, thing->angle);
|
||||
}
|
||||
// Previously modified boostangle, and didn't run in demo playback.
|
||||
// (Probably because SRB2's demo format was already storing and applying the camera changes made here?)
|
||||
// Whatever the case, this is drawangle now so that players don't fly out of pusher setpieces.
|
||||
angle_t angle = thing->player->drawangle;
|
||||
if (thing->angle - angle > ANGLE_180)
|
||||
thing->player->drawangle = angle - (angle - thing->angle) / 8;
|
||||
else
|
||||
thing->player->drawangle = angle + (thing->angle - angle) / 8;
|
||||
//P_SetPlayerAngle(thing->player, thing->angle);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue