From a5b317d552733c0febb0f08fff0d409625959b11 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 26 Mar 2025 19:51:31 +0100 Subject: [PATCH] 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 --- src/p_mobj.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/p_mobj.c b/src/p_mobj.c index 6bab04751..7c002e9d2 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -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