fixed hudgun perspective matrix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2176 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-06-28 10:04:42 +00:00
parent c3da156658
commit c033db4973
+2 -2
View File
@@ -706,9 +706,9 @@ void sethudgunperspective(bool on)
if(on)
{
glScalef(1, 1, 0.5f); // fix hudugns colliding with map geometry
gluPerspective((float)100.0f*screen->h/screen->w, aspect, 0.3f, farplane); // fov fixed at 100°
gluPerspective(75.0f, aspect, 0.3f, farplane); // y fov fixed at 75°
}
else gluPerspective((float)dynfov()*screen->h/screen->w, aspect, 0.15f, farplane);
else gluPerspective(fovy, aspect, 0.15f, farplane);
glMatrixMode(GL_MODELVIEW);
}