mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-23 14:01:14 +00:00
alternate fix to #555 which doesn't crash the game
This commit is contained in:
parent
6cabe55d3b
commit
7ddaf60a54
1 changed files with 3 additions and 3 deletions
|
|
@ -291,10 +291,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…
Add table
Reference in a new issue