- fixed typo in USDF spec.

- comment fixes taken from GZDoom.
- division by zero check in R_SetVisibility from GZDoom.
This commit is contained in:
Christoph Oelckers 2013-06-23 10:28:12 +02:00 committed by Randy Heit
commit 099e365a23
5 changed files with 7 additions and 13 deletions

View file

@ -263,7 +263,7 @@ void R_SetVisibility (float vis)
CurrentVisibility = vis;
if (FocalTangent == 0)
if (FocalTangent == 0 || FocalLengthY == 0)
{ // If r_visibility is called before the renderer is all set up, don't
// divide by zero. This will be called again later, and the proper
// values can be initialized then.