mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
- Fixed: Roll must orient the rotation based on pitch, not the other way around.
This commit is contained in:
parent
9ec3093a34
commit
16bea6cf1f
1 changed files with 1 additions and 1 deletions
|
@ -329,11 +329,11 @@ void GLSprite::Draw(int pass)
|
|||
{
|
||||
float pitchDegrees = actor->Angles.Pitch.Degrees;
|
||||
mat.Rotate(0, 1, 0, 0);
|
||||
mat.Rotate(-yawvecY, 0, yawvecX, pitchDegrees);
|
||||
if (drawRollSpriteActor)
|
||||
{
|
||||
mat.Rotate(yawvecX, 0, yawvecY, rollDegrees);
|
||||
}
|
||||
mat.Rotate(-yawvecY, 0, yawvecX, pitchDegrees);
|
||||
}
|
||||
// [fgsfds] Rotate the sprite about the sight vector (roll)
|
||||
else if (spritetype == RF_WALLSPRITE)
|
||||
|
|
Loading…
Reference in a new issue