diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 6ceed81ce..d1d1040ed 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -4591,7 +4591,8 @@ static void HWR_ProjectSprite(mobj_t *thing) #ifdef ROTSPRITE // determine here if sprite should rotate for optimization - const boolean shouldrotate = (cv_spriteroll.value && (interp.roll || interp.pitch || interp.sloperoll || interp.slopepitch || thing->rollangle)); + const boolean sliprollrotate = (cv_spriteroll.value && cv_sliptideroll.value && (thing->player && thing->player->sliproll)); + const boolean shouldrotate = (cv_spriteroll.value && (interp.roll || interp.pitch || interp.sloperoll || interp.slopepitch || thing->rollangle || sliprollrotate)); #endif //Fab : 02-08-98: 'skin' override spritedef currently used for skin @@ -4696,9 +4697,9 @@ static void HWR_ProjectSprite(mobj_t *thing) rollangle = thing->rollangle; } - if (rollangle || pitchnroll || (thing->player && thing->player->sliproll)) + if (rollangle || pitchnroll || sliprollrotate) { - if (thing->player && cv_sliptideroll.value) + if (sliprollrotate) { sliptiderollangle = thing->player->sliproll * (thing->player->sliptidemem); pitchnroll += rollangle + FixedMul(FINECOSINE((ang) >> ANGLETOFINESHIFT), sliptiderollangle); diff --git a/src/r_things.c b/src/r_things.c index a32e430d9..e965a06ce 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -1256,7 +1256,8 @@ static void R_ProjectSprite(mobj_t *thing) #ifdef ROTSPRITE // determine here if sprite should rotate for optimization - const boolean shouldrotate = (cv_spriteroll.value && (interp.roll || interp.pitch || interp.sloperoll || interp.slopepitch || thing->rollangle)); + const boolean sliprollrotate = (cv_spriteroll.value && cv_sliptideroll.value && (thing->player && thing->player->sliproll)); + const boolean shouldrotate = (cv_spriteroll.value && (interp.roll || interp.pitch || interp.sloperoll || interp.slopepitch || thing->rollangle || sliprollrotate)); #endif //Fab : 02-08-98: 'skin' override spritedef currently used for skin @@ -1379,9 +1380,9 @@ static void R_ProjectSprite(mobj_t *thing) rollangle = thing->rollangle; } - if (rollangle || pitchnroll || (thing->player && thing->player->sliproll)) + if (rollangle || pitchnroll || sliprollrotate) { - if (thing->player && cv_sliptideroll.value) + if (sliprollrotate) { sliptiderollangle = thing->player->sliproll * (thing->player->sliptidemem); pitchnroll += rollangle + FixedMul(FINECOSINE((ang) >> ANGLETOFINESHIFT), sliptiderollangle);