Enable vis calculation.

One nice thing about this project: I now KNOW that efrags works the way I
wanted it to: all those torches are now toggleable via r_novis :)
This commit is contained in:
Bill Currie 2012-01-03 23:20:01 +09:00
parent d0a0440056
commit fea7acd871

View file

@ -121,6 +121,8 @@ R_SetupFrame (void)
VectorCopy (r_refdef.vieworg, r_origin); VectorCopy (r_refdef.vieworg, r_origin);
AngleVectors (r_refdef.viewangles, vpn, vright, vup); AngleVectors (r_refdef.viewangles, vpn, vright, vup);
r_viewleaf = Mod_PointInLeaf (r_origin, r_worldentity.model);
} }
static void static void
@ -307,6 +309,7 @@ R_RenderView (void)
{ {
R_SetupFrame (); R_SetupFrame ();
R_SetupView (); R_SetupView ();
R_MarkLeaves ();
R_DrawWorld (); R_DrawWorld ();
R_RenderEntities (); R_RenderEntities ();
} }