- Apply same signedness fix from - fixed signedness issue with slope sprite coefficient. to spriteGetSlope().

This commit is contained in:
Mitchell Richters 2022-09-30 12:12:37 +10:00 committed by Christoph Oelckers
parent 2e8e5f99e7
commit 5cc9774873

View file

@ -368,7 +368,7 @@ inline void spriteSetSlope(DCoreActor* actor, int heinum)
inline int spriteGetSlope(DCoreActor* actor)
{
return ((actor->spr.cstat & CSTAT_SPRITE_ALIGNMENT_MASK) != CSTAT_SPRITE_ALIGNMENT_SLOPE) ? 0 : uint8_t(actor->spr.xoffset) + (uint8_t(actor->spr.yoffset) << 8);
return ((actor->spr.cstat & CSTAT_SPRITE_ALIGNMENT_MASK) != CSTAT_SPRITE_ALIGNMENT_SLOPE) ? 0 : uint8_t(actor->spr.xoffset) + (int8_t(actor->spr.yoffset) << 8);
}
// same stuff, different flag...