From e9690c8ee91cfbdbde53b556117c33c25baf781b Mon Sep 17 00:00:00 2001 From: Ragnvald Maartmann-Moe IV Date: Tue, 11 Dec 2001 20:36:23 +0000 Subject: [PATCH] Whitespace. --- libs/video/renderer/gl/gl_warp.c | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/libs/video/renderer/gl/gl_warp.c b/libs/video/renderer/gl/gl_warp.c index d771b0c12..69a185bad 100644 --- a/libs/video/renderer/gl/gl_warp.c +++ b/libs/video/renderer/gl/gl_warp.c @@ -186,7 +186,7 @@ float turbsin[] = { void EmitWaterPolys (msurface_t *fa) { - float os, ot, s, t; + float os, ot, s, t; float *v; int i; glpoly_t *p; @@ -197,22 +197,19 @@ EmitWaterPolys (msurface_t *fa) for (i = 0, v = p->verts[0]; i < p->numverts; i++, v += VERTEXSIZE) { os = v[3]; ot = v[4]; + s = (os + turbsin[(int) ((ot * 0.125 + r_realtime) * + TURBSCALE) & 255]) * (1.0 / 64.0); - s = (os + turbsin[(int) ((ot * 0.125 + r_realtime) * TURBSCALE) & - 255]) * (1.0 / 64.0); - - t = (ot + turbsin[(int) ((os * 0.125 + r_realtime) * TURBSCALE) & - 255]) * (1.0 / 64.0); - + t = (ot + turbsin[(int) ((os * 0.125 + r_realtime) * + TURBSCALE) & 255]) * (1.0 / 64.0); qfglTexCoord2f (s, t); VectorCopy (v, nv); - nv[2] += r_waterripple->value - * turbsin[(int) ((v[3] * 0.125 + r_realtime) * TURBSCALE) & - 255] - * turbsin[(int) ((v[4] * 0.125 + r_realtime) * TURBSCALE) & - 255] * (1.0 / 64.0); - + nv[2] += r_waterripple->value * + turbsin[(int) ((v[3] * 0.125 + r_realtime) * TURBSCALE) & + 255] * + turbsin[(int) ((v[4] * 0.125 + r_realtime) * TURBSCALE) & + 255] * (1.0 / 64.0); qfglVertex3fv (nv); } qfglEnd ();