Merge branch 'camera-fix' into 'next'

Camera fix

This fixes the third person camera being silly around intangible PolyObjects, particularly the fact they can affect the camera's floorz and ceilingz even though I see no reason why they should do so.

Also a good reminder that POF_SOLID is the same as POF_CLIPLINES and POF_CLIPPLANES combined, which is probably how this issue came about to begin with. Can't say that with certainty of course.

See merge request !57
This commit is contained in:
Inuyasha 2016-03-31 20:17:27 -04:00
commit 96c1d7a14b
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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;