fix sprite roll angles in software for sprites with one rotation frame
ofc only when the rotation stuff is set to rotate everything not just the player also changes that the shadows only rotate on that setting unless someone wants it and wants really dumb checks for it
This commit is contained in:
1 parent
dacf9eb7ab
commit
8a8d997fad
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -6489,7 +6489,7 @@ void P_MobjThinker(mobj_t *mobj)
|
||||
return;
|
||||
}
|
||||
|
||||
if (mobj->state == &states[S_SHADOW])
|
||||
if (mobj->state == &states[S_SHADOW] && (cv_sloperoll.value == 2 && cv_spriteroll.value))
|
||||
{
|
||||
mobj->slopepitch = mobj->target->slopepitch;
|
||||
mobj->sloperoll = mobj->target->sloperoll;
|
||||
|
||||
+1
-1
@@ -1445,7 +1445,7 @@ 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 || (thing->type == MT_SHADOW && thing->state == &states[S_SHADOW] && cv_sloperoll.value && cv_spriteroll.value))
|
||||
if (sprframe->rotate != SRF_SINGLE || papersprite || (cv_sloperoll.value == 2 && cv_spriteroll.value))
|
||||
{
|
||||
ang = R_PointToAngle (interp.x, interp.y) - interp.angle;
|
||||
camang = R_PointToAngle (interp.x, interp.y);
|
||||
|
||||
Reference in new issue
Block a user