mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-14 16:40:46 +00:00
- Blood: reverted GetSpriteExtents to integer math.
The change in precision was enough to make the game misbehave.
This commit is contained in:
parent
f92d20afc0
commit
9cc7f90410
1 changed files with 2 additions and 2 deletions
|
@ -88,8 +88,8 @@ void GetSpriteExtents(spritetypebase const* const pSprite, double* top, double*
|
|||
if ((pSprite->cstat & CSTAT_SPRITE_ALIGNMENT_MASK) != CSTAT_SPRITE_ALIGNMENT_FLOOR)
|
||||
{
|
||||
auto tex = TexMan.GetGameTexture(pSprite->spritetexture());
|
||||
double height = tex->GetDisplayHeight();
|
||||
double center = height / 2 + tex->GetDisplayTopOffset();
|
||||
int height = int(tex->GetDisplayHeight());
|
||||
int center = height / 2 + int(tex->GetDisplayTopOffset());
|
||||
*top -= pSprite->scale.Y * center;
|
||||
*bottom += pSprite->scale.Y * (height - center);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue