mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 10:51:42 +00:00
Is this thing working?
This commit is contained in:
parent
3a08761a8f
commit
ddb4f1b765
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
|
#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…
Add table
Reference in a new issue