skys are pausable now

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@289 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-10-03 10:13:22 +00:00
parent 173875eb5f
commit 5b197459eb

View file

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