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);