mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 13:50:53 +00:00
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:
parent
173875eb5f
commit
5b197459eb
1 changed files with 8 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue