better slope rotation for shadows

instead of copieng the target mobjs rotation we just use its standingslope instead, this means shadows properly rotate according to which slope theire on
should make them visually more cohesive if a player or other mobj is rotated midair
This commit is contained in:
Alug committed 2025-03-26 19:51:31 +01:00
1 parent 7b18694599
commit a5b317d552
1 file changed
+2 -6
+2 -6
View File
@@ -6359,12 +6359,8 @@ void P_MobjThinker(mobj_t *mobj)
return;
}
// dont need to extra check with K_ShouldSlopeRoll
if (cv_sloperoll.value == 2 && mobj->state == &states[S_SHADOW])
{
mobj->slopepitch = mobj->target->slopepitch;
mobj->sloperoll = mobj->target->sloperoll;
}
K_RollMobjBySlopes(mobj, mobj->target->standingslope);
P_AddShadow(mobj);
break;
//{ SRB2kart mobs