From ad648676b1dc7bc3ddcbd7d4b15e8012d194db01 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 29 Aug 2022 19:45:09 +0200 Subject: [PATCH] - floatified SPREXT_AWAY handler --- source/core/rendering/scene/hw_drawinfo.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/core/rendering/scene/hw_drawinfo.cpp b/source/core/rendering/scene/hw_drawinfo.cpp index 19ec7a2a7..7df71ce99 100644 --- a/source/core/rendering/scene/hw_drawinfo.cpp +++ b/source/core/rendering/scene/hw_drawinfo.cpp @@ -318,13 +318,11 @@ void HWDrawInfo::DispatchSprites() if (actor->sprext.renderflags & SPREXT_AWAY1) { - tspr->add_int_x(bcos(tspr->int_ang(), -13)); - tspr->add_int_y(bsin(tspr->int_ang(), -13)); + tspr->pos.XY() += tspr->angle.ToVector() * 0.125; } else if (actor->sprext.renderflags & SPREXT_AWAY2) { - tspr->add_int_x(-bcos(tspr->int_ang(), -13)); - tspr->add_int_y(-bsin(tspr->int_ang(), -13)); + tspr->pos.XY() -= tspr->angle.ToVector() * 0.125; } switch (tspr->cstat & CSTAT_SPRITE_ALIGNMENT_MASK)