mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- floatified SPREXT_AWAY handler
This commit is contained in:
parent
21feb41d78
commit
ad648676b1
1 changed files with 2 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue