- floatified SPREXT_AWAY handler

This commit is contained in:
Christoph Oelckers 2022-08-29 19:45:09 +02:00
parent 21feb41d78
commit ad648676b1

View file

@ -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)