This seems to be enough to fix the bug with sprGirder rendered in stripe
authorunc0rr
Sat, 14 Dec 2013 01:00:26 +0400
changeset 9792 59cde1e53ca5
parent 9791 446e4919b738
child 9794 05b9eedff805
This seems to be enough to fix the bug with sprGirder rendered in stripe
hedgewars/uRender.pas
--- 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);