Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maximum distance between portal surface and misc_portal_surface entity #1041

Open
slipher opened this issue Feb 10, 2024 · 0 comments
Open

Comments

@slipher
Copy link
Member

slipher commented Feb 10, 2024

The distance limit between a portal surface and the nearest misc_portal_surface entity was removed in bf333c6. 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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant