no more hudguns intersecting walls

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1483 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-12-25 11:38:35 +00:00
parent 2b33c1cf5e
commit 67c1e60a91
+3
View File
@@ -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);