From 5b197459eba423d191fb442c525c4889ea0a983e Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 3 Oct 2004 10:13:22 +0000 Subject: [PATCH] skys are pausable now git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@289 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_warp.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/engine/gl/gl_warp.c b/engine/gl/gl_warp.c index 704b12b42..5a5bbb2ff 100644 --- a/engine/gl/gl_warp.c +++ b/engine/gl/gl_warp.c @@ -356,14 +356,14 @@ void EmitBothSkyLayers (msurface_t *fa) GL_DisableMultitexture(); GL_Bind (solidskytexture); - speedscale = realtime*8; + speedscale = cl.gametime*8; speedscale -= (int)speedscale & ~127 ; EmitSkyPolys (fa); glEnable (GL_BLEND); GL_Bind (alphaskytexture); - speedscale = realtime*16; + speedscale = cl.gametime*16; speedscale -= (int)speedscale & ~127 ; EmitSkyPolys (fa); @@ -391,7 +391,9 @@ void R_DrawSkyChain (msurface_t *s) // used when gl_texsort is on GL_Bind(solidskytexture); - speedscale = realtime*8; + speedscale = cl.gametime; + speedscale += realtime - cl.gametimemark; + speedscale*=8; speedscale -= (int)speedscale & ~127 ; for (fa=s ; fa ; fa=fa->texturechain) @@ -399,7 +401,9 @@ void R_DrawSkyChain (msurface_t *s) glEnable (GL_BLEND); GL_Bind (alphaskytexture); - speedscale = realtime*16; + speedscale = cl.gametime; + speedscale += realtime - cl.gametimemark; + speedscale*=16; speedscale -= (int)speedscale & ~127 ; for (fa=s ; fa ; fa=fa->texturechain)