From 67c1e60a91f99283e6d862bf57c86db3760fa5b0 Mon Sep 17 00:00:00 2001 From: driAn Date: Tue, 25 Dec 2007 11:38:35 +0000 Subject: [PATCH] no more hudguns intersecting walls git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1483 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/rendergl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/src/rendergl.cpp b/source/src/rendergl.cpp index d0040762..c901d79b 100644 --- a/source/src/rendergl.cpp +++ b/source/src/rendergl.cpp @@ -555,6 +555,9 @@ void drawhudgun(int w, int h, float aspect, int farplane) glMatrixMode(GL_PROJECTION); glLoadIdentity(); + + glScalef(1, 1, 0.5f); // fix hudugns colliding with map geometry + gluPerspective((float)100.0f*h/w, aspect, 0.3f, farplane); // fov fixed at 100° glMatrixMode(GL_MODELVIEW);