mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-02 00:43:43 +00:00
This commit is contained in:
commit
64ae207fb9
2 changed files with 2 additions and 2 deletions
|
@ -536,7 +536,7 @@ void GLDrawList::SortSpriteIntoWall(SortNode * head,SortNode * sort)
|
||||||
|
|
||||||
const bool drawBillboardFacingCamera = gl_billboard_faces_camera;
|
const bool drawBillboardFacingCamera = gl_billboard_faces_camera;
|
||||||
// [Nash] has +ROLLSPRITE
|
// [Nash] has +ROLLSPRITE
|
||||||
const bool rotated = (ss->actor != nullptr && ss->actor->renderflags & RF_ROLLSPRITE | RF_WALLSPRITE | RF_FLATSPRITE);
|
const bool rotated = (ss->actor != nullptr && ss->actor->renderflags & (RF_ROLLSPRITE | RF_WALLSPRITE | RF_FLATSPRITE));
|
||||||
|
|
||||||
// cannot sort them at the moment. This requires more complex splitting.
|
// cannot sort them at the moment. This requires more complex splitting.
|
||||||
if (drawWithXYBillboard || drawBillboardFacingCamera || rotated)
|
if (drawWithXYBillboard || drawBillboardFacingCamera || rotated)
|
||||||
|
|
|
@ -66,7 +66,7 @@ struct GLSeg
|
||||||
// we do not use the vector math inlines here because they are not optimized for speed but accuracy in the playsim
|
// we do not use the vector math inlines here because they are not optimized for speed but accuracy in the playsim
|
||||||
float x = y2 - y1;
|
float x = y2 - y1;
|
||||||
float y = x1 - x2;
|
float y = x1 - x2;
|
||||||
float length = sqrt(x*x + y*y);
|
float length = sqrtf(x*x + y*y);
|
||||||
return FVector3(x / length, 0, y / length);
|
return FVector3(x / length, 0, y / length);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue