mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-15 17:21:34 +00:00
Revert "Attempt to not let the camera into thok barriers"
This reverts commit 9f42e74fe2
.
This commit is contained in:
parent
738ee90d8a
commit
376656343a
2 changed files with 5 additions and 16 deletions
11
src/p_map.c
11
src/p_map.c
|
@ -2181,12 +2181,6 @@ boolean P_CheckCameraPosition(fixed_t x, fixed_t y, camera_t *thiscam)
|
|||
|
||||
mapcampointer = thiscam;
|
||||
|
||||
#ifdef NOCLIPCAM
|
||||
if (newsubsec->sector->floorheight >= newsubsec->sector->ceilingheight
|
||||
|| newsubsec->sector->ceilingheight <= newsubsec->sector->floorheight)
|
||||
return false;
|
||||
#endif
|
||||
|
||||
if (GETSECSPECIAL(newsubsec->sector->special, 4) == 12)
|
||||
{ // Camera noclip on entire sector.
|
||||
tmfloorz = tmdropoffz = thiscam->z;
|
||||
|
@ -2384,10 +2378,7 @@ boolean P_TryCameraMove(fixed_t x, fixed_t y, camera_t *thiscam)
|
|||
fixed_t tryx = thiscam->x;
|
||||
fixed_t tryy = thiscam->y;
|
||||
|
||||
#ifdef NOCLIPCAM
|
||||
if (!(s->sector->floorheight >= s->sector->ceilingheight
|
||||
|| s->sector->ceilingheight <= s->sector->floorheight))
|
||||
#else
|
||||
#ifndef NOCLIPCAM
|
||||
if ((thiscam == &camera && (players[displayplayer].pflags & PF_NOCLIP))
|
||||
|| (thiscam == &camera2 && (players[secondarydisplayplayer].pflags & PF_NOCLIP))
|
||||
|| (thiscam == &camera3 && (players[thirddisplayplayer].pflags & PF_NOCLIP))
|
||||
|
|
|
@ -3702,7 +3702,6 @@ boolean P_CameraThinker(player_t *player, camera_t *thiscam, boolean resetcalled
|
|||
{
|
||||
if (!P_TryCameraMove(thiscam->x + thiscam->momx, thiscam->y + thiscam->momy, thiscam))
|
||||
{ // Never fails for 2D mode.
|
||||
#ifndef NOCLIPCAM
|
||||
mobj_t dummy;
|
||||
dummy.thinker.function.acp1 = (actionf_p1)P_MobjThinker;
|
||||
dummy.subsector = thiscam->subsector;
|
||||
|
@ -3713,7 +3712,6 @@ boolean P_CameraThinker(player_t *player, camera_t *thiscam, boolean resetcalled
|
|||
if (!resetcalled && !(player->pflags & PF_NOCLIP || leveltime < introtime) && !P_CheckSight(&dummy, player->mo)) // TODO: "P_CheckCameraSight" instead.
|
||||
P_ResetCamera(player, thiscam);
|
||||
else
|
||||
#endif
|
||||
P_SlideCameraMove(thiscam);
|
||||
if (resetcalled) // Okay this means the camera is fully reset.
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue