mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
Remove the interp-caused jitter from cutaway camera behaviour
It is preferable that smash cuts reset view interpolation IMO
This commit is contained in:
parent
f9b1bdf2bc
commit
f24df4f38d
1 changed files with 11 additions and 1 deletions
12
src/p_spec.c
12
src/p_spec.c
|
|
@ -3026,6 +3026,7 @@ boolean P_ProcessSpecial(activator_t *activator, INT16 special, INT32 *args, cha
|
||||||
{
|
{
|
||||||
altview_t *modifyView = NULL;
|
altview_t *modifyView = NULL;
|
||||||
mobj_t *newViewMobj = NULL;
|
mobj_t *newViewMobj = NULL;
|
||||||
|
INT32 i;
|
||||||
|
|
||||||
if (gamestate != GS_LEVEL)
|
if (gamestate != GS_LEVEL)
|
||||||
{
|
{
|
||||||
|
|
@ -3052,10 +3053,20 @@ boolean P_ProcessSpecial(activator_t *activator, INT16 special, INT32 *args, cha
|
||||||
{
|
{
|
||||||
// If titlemap, awayview.tics is ignored
|
// If titlemap, awayview.tics is ignored
|
||||||
modifyView->tics = -1;
|
modifyView->tics = -1;
|
||||||
|
|
||||||
|
R_ResetViewInterpolation(0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
modifyView->tics = args[1];
|
modifyView->tics = args[1];
|
||||||
|
|
||||||
|
for (i = 0; i <= r_splitscreen; i++)
|
||||||
|
{
|
||||||
|
if (displayplayers[i] == (mo->player - players))
|
||||||
|
{
|
||||||
|
R_ResetViewInterpolation(i + 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (args[2] != 0)
|
if (args[2] != 0)
|
||||||
|
|
@ -3067,7 +3078,6 @@ boolean P_ProcessSpecial(activator_t *activator, INT16 special, INT32 *args, cha
|
||||||
case TMCAM_THIRD:
|
case TMCAM_THIRD:
|
||||||
{
|
{
|
||||||
mobj_t *firstPlace = NULL;
|
mobj_t *firstPlace = NULL;
|
||||||
INT32 i;
|
|
||||||
|
|
||||||
for (i = 0; i < MAXPLAYERS; i++)
|
for (i = 0; i < MAXPLAYERS; i++)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue