mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-04 16:02:48 +00:00
Fix camera going nuts around intangible polyobjects
This commit is contained in:
parent
83e9eb6df4
commit
5b89164cf7
2 changed files with 2 additions and 2 deletions
|
|
@ -1616,7 +1616,7 @@ boolean P_CheckCameraPosition(fixed_t x, fixed_t y, camera_t *thiscam)
|
||||||
|
|
||||||
po->validcount = validcount;
|
po->validcount = validcount;
|
||||||
|
|
||||||
if (!P_PointInsidePolyobj(po, x, y))
|
if (!P_PointInsidePolyobj(po, x, y) || !(po->flags & POF_SOLID))
|
||||||
{
|
{
|
||||||
plink = (polymaplink_t *)(plink->link.next);
|
plink = (polymaplink_t *)(plink->link.next);
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
|
|
@ -8163,7 +8163,7 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
||||||
|
|
||||||
po->validcount = validcount;
|
po->validcount = validcount;
|
||||||
|
|
||||||
if (!P_PointInsidePolyobj(po, x, y))
|
if (!P_PointInsidePolyobj(po, x, y) || !(po->flags & POF_SOLID))
|
||||||
{
|
{
|
||||||
plink = (polymaplink_t *)(plink->link.next);
|
plink = (polymaplink_t *)(plink->link.next);
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue