From 72b198d650234a796d31d5ce8c505fb9f522ef83 Mon Sep 17 00:00:00 2001 From: Ragnvald Maartmann-Moe IV Date: Fri, 5 Oct 2001 18:55:40 +0000 Subject: [PATCH] Minor cleanup. --- libs/video/renderer/gl/gl_warp.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/libs/video/renderer/gl/gl_warp.c b/libs/video/renderer/gl/gl_warp.c index 7f5564a12..30fc7e35a 100644 --- a/libs/video/renderer/gl/gl_warp.c +++ b/libs/video/renderer/gl/gl_warp.c @@ -200,13 +200,11 @@ EmitWaterPolys (msurface_t *fa) os = v[3]; ot = v[4]; - s = os + turbsin[(int) ((ot * 0.125 + r_realtime) * TURBSCALE) & - 255]; - s *= (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]; - t *= (1.0 / 64.0); + t = (ot + turbsin[(int) ((os * 0.125 + r_realtime) * TURBSCALE) & + 255]) * (1.0 / 64.0); qfglTexCoord2f (s, t); @@ -215,8 +213,7 @@ EmitWaterPolys (msurface_t *fa) * turbsin[(int) ((v[3] * 0.125 + r_realtime) * TURBSCALE) & 255] * turbsin[(int) ((v[4] * 0.125 + r_realtime) * TURBSCALE) & - 255] - * (1.0 / 64.0); + 255] * (1.0 / 64.0); qfglVertex3fv (nv); }