# HG changeset patch # User Palewolf # Date 1293375021 -3600 # Node ID d07fa84804914a6cad677b8acb221b7411ac2732 # Parent 5fe167cebdd1695a39e4a14fba02346c6dcd2e7d Turn off dust when drilling through air diff -r 5fe167cebdd1 -r d07fa8480491 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);