Daemon icon indicating copy to clipboard operation
Daemon copied to clipboard

Maximum distance between portal surface and misc_portal_surface entity

Open slipher opened this issue 2 years ago • 0 comments

The distance limit between a portal surface and the nearest misc_portal_surface entity was removed in bf333c6d106886441d35cc37dc8dffc9f3dfeeae. However, the comment at the end of R_GetPortalOrientations suggests why a maximum distance may be needed:

	// unfortunately, with local movement prediction it is easily possible
	// to see a surface before the server has communicated the matching
	// portal surface entity, so we don't want to print anything here...

If the cgame does not currently know about the needed misc_portal_surface entity, an incorrect view could be rendered from a different entity. Of course this could also happen with the old code too, since it only checked the distance along one axis...

slipher avatar Feb 10 '24 09:02 slipher