--- a/hedgewars/uRender.pas Fri Dec 13 13:52:10 2013 -0500 +++ b/hedgewars/uRender.pas Sat Dec 14 01:03:10 2013 +0400 @@ -335,6 +335,9 @@ if (X + SpritesData[Sprite].Width > RightX) then r.w:= RightX - X + 1; +if (r.h < r.y) or (r.w < r.x) then + exit; + dec(r.h, r.y); dec(r.w, r.x);