mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-12-03 17:02:12 +00:00
The GL part of Quake Rolls.
This commit is contained in:
parent
15480feb96
commit
3be33b5725
1 changed files with 1 additions and 1 deletions
|
@ -799,7 +799,7 @@ sector_t * FGLRenderer::RenderViewpoint (AActor * camera, GL_IRECT * bounds, flo
|
||||||
double alen = sqrt(angx*angx + angy*angy);
|
double alen = sqrt(angx*angx + angy*angy);
|
||||||
|
|
||||||
mAngles.Pitch = (float)RAD2DEG(asin(angy / alen));
|
mAngles.Pitch = (float)RAD2DEG(asin(angy / alen));
|
||||||
mAngles.Roll.Degrees = camera->Angles.Roll.Degrees;
|
mAngles.Roll.Degrees = ViewRoll.Degrees;
|
||||||
|
|
||||||
// Scroll the sky
|
// Scroll the sky
|
||||||
mSky1Pos = (float)fmod(gl_frameMS * level.skyspeed1, 1024.f) * 90.f/256.f;
|
mSky1Pos = (float)fmod(gl_frameMS * level.skyspeed1, 1024.f) * 90.f/256.f;
|
||||||
|
|
Loading…
Reference in a new issue