fixed dynfov culling bug

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2177 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-06-28 12:17:17 +00:00
parent c033db4973
commit 7363a42bf2
5 changed files with 11 additions and 12 deletions
+3 -3
View File
@@ -508,7 +508,7 @@ void drawreflection(float hf, int w, int h, float changelod, bool refract)
resetcubes();
render_world(camera1->o.x, camera1->o.y, refract ? camera1->o.z : hf, changelod,
(int)camera1->yaw, (refract ? 1 : -1)*(int)camera1->pitch, dynfov(), size, size);
(int)camera1->yaw, (refract ? 1 : -1)*(int)camera1->pitch, dynfov(), fovy, size, size);
setupstrips();
@@ -656,7 +656,7 @@ void drawminimap(int w, int h)
resetcubes();
render_world(camera1->o.x, camera1->o.y, camera1->o.z, 1.0f,
(int)camera1->yaw, (int)camera1->pitch, 90.0f, size, size);
(int)camera1->yaw, (int)camera1->pitch, 90.0f, 90.0f, size, size);
setupstrips();
@@ -848,7 +848,7 @@ void gl_drawframe(int w, int h, float changelod, float curfps)
resetcubes();
render_world(camera1->o.x, camera1->o.y, camera1->o.z, changelod,
(int)camera1->yaw, (int)camera1->pitch, dynfov(), w, h);
(int)camera1->yaw, (int)camera1->pitch, dynfov(), fovy, w, h);
setupstrips();