those should be SHORT i think?

This commit is contained in:
Alug committed 2024-11-21 02:11:48 +01:00
1 parent 8a15b5e640
commit e2222f66a9
1 file changed
+6 -6
+6 -6
View File
@@ -842,8 +842,8 @@ patch_t *Patch_GetRotatedSprite(spriteframe_t *sprite, size_t frame, size_t spri
}
else
{
xpivot = patch->leftoffset;
ypivot = patch->height / 2;
xpivot = SHORT(patch->leftoffset);
ypivot = SHORT(patch->height) / 2;
}
RotatedPatch_DoRotation(rotsprite, patch, rotationangle, xpivot, ypivot, flip);
@@ -902,9 +902,9 @@ void RotatedPatch_DoRotation(rotsprite_t *rotsprite, patch_t *patch, INT32 angle
size_t size;
INT32 bflip = (flip != 0x00);
INT32 width = patch->width;
INT32 height = patch->height;
INT32 leftoffset = patch->leftoffset;
INT32 width = SHORT(patch->width);
INT32 height = SHORT(patch->height);
INT32 leftoffset = SHORT(patch->leftoffset);
INT32 newwidth, newheight;
fixed_t ca = rollcosang[angle];
@@ -975,7 +975,7 @@ void RotatedPatch_DoRotation(rotsprite_t *rotsprite, patch_t *patch, INT32 angle
}
ox = (newwidth / 2) + (leftoffset - xpivot);
oy = (newheight / 2) + (patch->topoffset - ypivot);
oy = (newheight / 2) + (SHORT(patch->topoffset) - ypivot);
width = (maxx - minx);
height = (maxy - miny);