--- a/hedgewars/uRender.pas Fri Dec 13 22:38:09 2013 +0400
+++ b/hedgewars/uRender.pas Sat Dec 14 01:00:26 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);