Fixes interpolated z for portals (x and y were fixed already)

This commit is contained in:
toaster 2022-10-31 18:20:21 +00:00
parent 3cce3ec2ce
commit a7ae0e8677

View file

@ -1220,7 +1220,7 @@ static void R_PortalFrame(line_t *start, line_t *dest, portal_pair *portal)
dest_c.y = (dest->v1->y + dest->v2->y) / 2;
// Heights!
newview->z += dest->frontsector->floorheight - start->frontsector->floorheight;
viewz += dest->frontsector->floorheight - start->frontsector->floorheight;
// calculate the difference in position and rotation!
#ifdef ANGLED_PORTALS