Turn off dust when drilling through air 0.9.15
authorPalewolf
Sun, 26 Dec 2010 15:50:21 +0100
branch0.9.15
changeset 4691 d07fa8480491
parent 4689 5fe167cebdd1
child 4693 6f74c97147fe
Turn off dust when drilling through air
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Sun Dec 26 14:58:28 2010 +0100
+++ b/hedgewars/GSHandlers.inc	Sun Dec 26 15:50:21 2010 +0100
@@ -1038,7 +1038,7 @@
     if (Gear^.Timer mod 47) = 0 then
         begin
         // ok. this was an attempt to turn off dust if not actually drilling land.  I have no idea why it isn't working as expected
-        //if ((y + 12 and LAND_HEIGHT_MASK) = 0) and ((x and LAND_WIDTH_MASK) = 0) and (Land[y + 12, x] > 255) then 
+        if (( (y + 12) and LAND_HEIGHT_MASK) = 0) and ((x and LAND_WIDTH_MASK) = 0) and (Land[y + 12, x] > 255) then 
             for i:= 0 to 1 do
                 AddVisualGear(x - 5 + Random(10), y + 12, vgtDust);