Is this thing working?

This commit is contained in:
James 2019-08-29 15:56:46 -04:00
parent 121d8b7838
commit 656879b90b
1 changed files with 12 additions and 0 deletions

View File

@ -11576,9 +11576,21 @@ void P_PlayerAfterThink(player_t *player)
#endif
if (splitscreen && player == &players[secondarydisplayplayer])
{
thiscam = &camera2;
if (P_AproxDistance(player->mo->x-thiscam->x-thiscam->momx, player->mo->y-thiscam->y-thiscam->momy) > ((player->speed+cv_cam2_dist.value)*2))
{
P_ResetCamera(player, thiscam);
}
}
else if (player == &players[displayplayer])
{
thiscam = &camera;
if (P_AproxDistance(player->mo->x-thiscam->x-thiscam->momx, player->mo->y-thiscam->y-thiscam->momy) > ((player->speed+cv_cam_dist.value)*2))
{
P_ResetCamera(player, thiscam);
}
}
if (player->playerstate == PST_DEAD)
{