mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Use angle between viewz and mobj z to determine splat sprite angle
This commit is contained in:
parent
877d5450d5
commit
04855a85dc
2 changed files with 15 additions and 4 deletions
|
@ -5195,9 +5195,16 @@ static void HWR_ProjectSprite(mobj_t *thing)
|
|||
I_Error("sprframes NULL for sprite %d\n", thing->sprite);
|
||||
#endif
|
||||
|
||||
ang = R_PointToAngle (interp.x, interp.y) - interp.angle;
|
||||
if (mirrored)
|
||||
ang = InvAngle(ang);
|
||||
if (splat)
|
||||
{
|
||||
ang = R_PointToAngle2(0, viewz, 0, interp.z);
|
||||
}
|
||||
else
|
||||
{
|
||||
ang = R_PointToAngle (interp.x, interp.y) - interp.angle;
|
||||
if (mirrored)
|
||||
ang = InvAngle(ang);
|
||||
}
|
||||
|
||||
if (sprframe->rotate == SRF_SINGLE)
|
||||
{
|
||||
|
|
|
@ -1586,7 +1586,11 @@ static void R_ProjectSprite(mobj_t *thing)
|
|||
I_Error("R_ProjectSprite: sprframes NULL for sprite %d\n", thing->sprite);
|
||||
#endif
|
||||
|
||||
if (sprframe->rotate != SRF_SINGLE || papersprite)
|
||||
if (splat)
|
||||
{
|
||||
ang = R_PointToAngle2(0, viewz, 0, interp.z);
|
||||
}
|
||||
else if (sprframe->rotate != SRF_SINGLE || papersprite)
|
||||
{
|
||||
ang = R_PointToAngle (interp.x, interp.y) - interp.angle;
|
||||
if (mirrored)
|
||||
|
|
Loading…
Reference in a new issue