merge
authorunc0rr
Sat, 14 Dec 2013 01:03:10 +0400
changeset 9794 05b9eedff805
parent 9792 59cde1e53ca5 (diff)
parent 9793 c2f10934ed4d (current diff)
child 9795 487e5675061f
merge
--- 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);