mirror of
https://github.com/DrBeef/Raze.git
synced 2025-02-20 18:52:43 +00:00
- Apply same signedness fix from - fixed signedness issue with slope sprite coefficient.
to spriteGetSlope()
.
This commit is contained in:
parent
2e8e5f99e7
commit
5cc9774873
1 changed files with 1 additions and 1 deletions
|
@ -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...
|
||||
|
|
Loading…
Reference in a new issue