mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Merge branch 'rotationcrash' into 'next'
Fix 2.2.10 pre1 rollangle crash (resolves #747) Closes #747 See merge request STJr/SRB2!1707
This commit is contained in:
commit
ea3b867c7e
1 changed files with 3 additions and 3 deletions
|
@ -227,10 +227,10 @@ void RotatedPatch_DoRotation(rotsprite_t *rotsprite, patch_t *patch, INT32 angle
|
|||
|
||||
ox = (newwidth / 2) + (leftoffset - xpivot);
|
||||
oy = (newheight / 2) + (patch->topoffset - ypivot);
|
||||
width = (maxx+1 - minx);
|
||||
height = (maxy+1 - miny);
|
||||
width = (maxx - minx);
|
||||
height = (maxy - miny);
|
||||
|
||||
if ((unsigned)(width * height) != size)
|
||||
if ((unsigned)(width * height) > size)
|
||||
{
|
||||
UINT16 *src, *dest;
|
||||
|
||||
|
|
Loading…
Reference in a new issue