Is this thing working?
This commit is contained in:
parent
121d8b7838
commit
656879b90b
12
src/p_user.c
12
src/p_user.c
|
@ -11576,9 +11576,21 @@ void P_PlayerAfterThink(player_t *player)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (splitscreen && player == &players[secondarydisplayplayer])
|
if (splitscreen && player == &players[secondarydisplayplayer])
|
||||||
|
{
|
||||||
thiscam = &camera2;
|
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])
|
else if (player == &players[displayplayer])
|
||||||
|
{
|
||||||
thiscam = &camera;
|
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)
|
if (player->playerstate == PST_DEAD)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue