more R_ResetViewInterpolation stuff
This commit is contained in:
1 parent
afd7b85005
commit
ccd691548e
1 file changed
+12
-1
+12
-1
@@ -2097,7 +2097,6 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
|
||||
camera[i].reset = true;
|
||||
camera[i].subsector = R_PointInSubsector(camera[i].x, camera[i].y);
|
||||
R_RelativeTeleportViewInterpolation(i, x, y, z, 0);
|
||||
R_ResetViewInterpolation(i + 1); // reset view interp as well
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -2485,6 +2484,7 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
|
||||
case 422: // Cut away to another view
|
||||
{
|
||||
mobj_t *altview;
|
||||
INT32 i;
|
||||
|
||||
if (!mo || !mo->player) // only players have views
|
||||
return;
|
||||
@@ -2496,6 +2496,17 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
|
||||
if (!altview)
|
||||
return;
|
||||
|
||||
if (gamestate == GS_LEVEL)
|
||||
{
|
||||
for (i = 0; i <= splitscreen; i++)
|
||||
{
|
||||
if (displayplayers[i] == (mo->player - players))
|
||||
{
|
||||
R_ResetViewInterpolation(i + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
P_SetTarget(&mo->player->awayviewmobj, altview);
|
||||
mo->player->awayviewtics = P_AproxDistance(line->dx, line->dy)>>FRACBITS;
|
||||
|
||||
|
||||
Reference in new issue
Block a user