mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-19 15:40:58 +00:00
- fixed signedness issue with slope sprite coefficient.
This commit is contained in:
parent
7915fb7ef1
commit
be92d252ff
1 changed files with 1 additions and 1 deletions
|
@ -287,7 +287,7 @@ inline int spriteGetSlope(DCoreActor* actor)
|
|||
// same stuff, different flag...
|
||||
inline int tspriteGetSlope(const tspritetype* spr)
|
||||
{
|
||||
return !(spr->clipdist & TSPR_SLOPESPRITE) ? 0 : uint8_t(spr->xoffset) + (uint8_t(spr->yoffset) << 8);
|
||||
return !(spr->clipdist & TSPR_SLOPESPRITE) ? 0 : uint8_t(spr->xoffset) + (int8_t(spr->yoffset) << 8);
|
||||
}
|
||||
|
||||
inline int32_t tspriteGetZOfSlope(const tspritetype* tspr, int dax, int day)
|
||||
|
|
Loading…
Reference in a new issue