From 2d8e0703aaac39fb774e9b4154555b31ba0ddc2f Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Fri, 25 May 2007 10:30:18 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1017 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/renderparticles.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/src/renderparticles.cpp b/source/src/renderparticles.cpp index 28490749..cee0260d 100644 --- a/source/src/renderparticles.cpp +++ b/source/src/renderparticles.cpp @@ -327,6 +327,7 @@ void render_particles(int time) bool inside = p->o.dist(camera1->o) <= sz*1.25f; //1.25 is max wobble scale vec oc(p->o); oc.sub(camera1->o); + if(reflecting && !refracting) oc.z = p->o.z - (hdr.waterlevel-0.3f); glRotatef(inside ? camera1->yaw - 180 : atan2(oc.y, oc.x)/RAD - 90, 0, 0, 1); glRotatef((inside ? camera1->pitch : asin(oc.z/oc.magnitude())/RAD) - 90, 1, 0, 0);