Skip to content
Snippets Groups Projects
Commit 2e4c5d14 authored by katsy's avatar katsy
Browse files

alternate fix to #555 which doesn't crash the game

parent e8c83f48
No related branches found
No related tags found
1 merge request!1707Fix 2.2.10 pre1 rollangle crash (resolves #747)
...@@ -227,10 +227,10 @@ void RotatedPatch_DoRotation(rotsprite_t *rotsprite, patch_t *patch, INT32 angle ...@@ -227,10 +227,10 @@ void RotatedPatch_DoRotation(rotsprite_t *rotsprite, patch_t *patch, INT32 angle
ox = (newwidth / 2) + (leftoffset - xpivot); ox = (newwidth / 2) + (leftoffset - xpivot);
oy = (newheight / 2) + (patch->topoffset - ypivot); oy = (newheight / 2) + (patch->topoffset - ypivot);
width = (maxx+1 - minx); width = (maxx - minx);
height = (maxy+1 - miny); height = (maxy - miny);
if ((unsigned)(width * height) != size) if ((unsigned)(width * height) > size)
{ {
UINT16 *src, *dest; UINT16 *src, *dest;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment