mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-20 19:02:34 +00:00
Is this thing working?
This commit is contained in:
parent
121d8b7838
commit
656879b90b
1 changed files with 12 additions and 0 deletions
12
src/p_user.c
12
src/p_user.c
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue