fixed dynlights to actually work

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2664 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-09-17 07:13:35 +00:00
parent 3ca592b009
commit 56191aa2be
7 changed files with 95 additions and 52 deletions
+3
View File
@@ -826,6 +826,7 @@ void readdepth(int w, int h, vec &pos)
void gl_drawframe(int w, int h, float changelod, float curfps)
{
dodynlights();
drawminimap(w, h);
recomputecamera();
@@ -959,5 +960,7 @@ void gl_drawframe(int w, int h, float changelod, float curfps)
glEnable(GL_CULL_FACE);
glEnable(GL_FOG);
undodynlights();
}