From 6f945cdb5863dd54421ad7ada183a95bc7687894 Mon Sep 17 00:00:00 2001 From: plagman Date: Fri, 13 Feb 2009 12:16:21 +0000 Subject: [PATCH] Correct calculation of vertical aiming angle. git-svn-id: https://svn.eduke32.com/eduke32@1223 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/polymer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/polymer/eduke32/build/src/polymer.c b/polymer/eduke32/build/src/polymer.c index 6d68330bf..9a309154c 100644 --- a/polymer/eduke32/build/src/polymer.c +++ b/polymer/eduke32/build/src/polymer.c @@ -479,7 +479,7 @@ void polymer_drawrooms(int32_t daposx, int32_t daposy, int32_t da if (pr_verbosity >= 3) OSD_Printf("PR : Drawing rooms...\n"); ang = (float)(daang) / (2048.0f / 360.0f); - horizang = (float)(100 - dahoriz) / (512.0f / 180.0f); + horizang = (float)(-getangle(128, dahoriz-100)) / (2048.0f / 360.0f); tiltang = (gtang * 90.0f); pos[0] = daposy; @@ -2778,7 +2778,7 @@ static int32_t polymer_bindmaterial(_prmaterial material) color[0] = 0.1f; color[1] = 0.1f; - color[2] = 0.5f; + color[2] = 1.0f; range[0] = 1024.0f / 1000.0; range[1] = 2048.0f / 1000.0; @@ -2804,8 +2804,8 @@ static int32_t polymer_bindmaterial(_prmaterial material) color[5] = 0.5f; color[6] = 0.5f; - range[2] = 8000.0f / 1000.0; - range[3] = 10000.0f / 1000.0; + range[2] = 0.0f / 1000.0; + range[3] = 2048.0f / 1000.0; bglLightfv(GL_LIGHT0, GL_AMBIENT, lightpos); bglLightfv(GL_LIGHT0, GL_DIFFUSE, color);