git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2172 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-06-10 09:12:12 +00:00
parent a9da5f4196
commit 684ab4fd66
+3 -2
View File
@@ -768,9 +768,10 @@ void gl_drawframe(int w, int h, float changelod, float curfps)
recomputecamera();
aspect = float(w)/h;
fovy = 2*atan2(tan(float(dynfov())/2*RAD), aspect)/RAD;
float hf = hdr.waterlevel-0.3f;
fovy = (float)dynfov()*h/w;
aspect = w/(float)h;
bool underwater = camera1->o.z<hf;
glFogi(GL_FOG_START, (fog+64)/8);