mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-16 10:36:09 +00:00
Merge branch 'loop-camera-stupid' into 'master'
Fix loop camera bugs See merge request KartKrew/Kart!2101
This commit is contained in:
commit
58f6ea9725
1 changed files with 12 additions and 1 deletions
13
src/p_user.c
13
src/p_user.c
|
|
@ -3304,10 +3304,21 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
|||
|
||||
if (turn > turnspeed)
|
||||
{
|
||||
// TODO: this code let the panning angle flip
|
||||
// depending on your camera angle when entering
|
||||
// the loop.
|
||||
// It caused just about every loop to look weird
|
||||
// sometimes, since the camera could move
|
||||
// differently than configured.
|
||||
// I don't know if this behavior should ever come
|
||||
// back, but in case it should, I'm leaving this
|
||||
// comment here.
|
||||
#if 0
|
||||
if (turn < ANGLE_90)
|
||||
{
|
||||
turnspeed = -(turnspeed);
|
||||
}
|
||||
#endif
|
||||
|
||||
focusangle += turnspeed;
|
||||
}
|
||||
|
|
@ -3462,7 +3473,7 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
|||
y = mo->y - FixedMul(FINESINE((angle>>ANGLETOFINESHIFT) & FINEMASK), distxy);
|
||||
|
||||
// SRB2Kart: set camera panning
|
||||
if (camstill || resetcalled || player->playerstate == PST_DEAD)
|
||||
if (camstill || resetcalled || player->playerstate == PST_DEAD || player->loop.radius)
|
||||
pan = xpan = ypan = 0;
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue