From c033db497348d6196537662ad183c0a6ff63ee68 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sat, 28 Jun 2008 10:04:42 +0000 Subject: [PATCH] fixed hudgun perspective matrix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2176 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/rendergl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/rendergl.cpp b/source/src/rendergl.cpp index e8575f0c..7a62fb6e 100644 --- a/source/src/rendergl.cpp +++ b/source/src/rendergl.cpp @@ -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); }