forgor sliptide roll

This commit is contained in:
Alug committed 2024-11-30 20:28:19 +01:00
1 parent ed67c8fd56
commit 5e46b9de60
2 files changed
+8 -6

No files matched your search

+4 -3
View File
@@ -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);
+4 -3
View File
@@ -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);