# HG changeset patch # User unc0rr # Date 1309266729 -14400 # Node ID 6963e37f2dd2fa3f5de44d776691f5a241678f66 # Parent dbe8a4ea85211cbcfa1614864e0a82150332ef4e - Allow snow to drop a bit outside the map, where it already is allowed to spawn - Tiny optimization diff -r dbe8a4ea8521 -r 6963e37f2dd2 hedgewars/GSHandlers.inc --- a/hedgewars/GSHandlers.inc Tue Jun 28 16:12:39 2011 +0400 +++ b/hedgewars/GSHandlers.inc Tue Jun 28 17:12:09 2011 +0400 @@ -625,7 +625,7 @@ end; // move back to cloud layer if yy > cWaterLine then move:= true - else if ((yy and LAND_HEIGHT_MASK) <> 0) or ((xx and LAND_WIDTH_MASK) <> 0) then move:=true + else if ((yy and LAND_HEIGHT_MASK) <> 0) or (xx > LAND_WIDTH + 512) or (xx < -512) then move:=true // Solid pixel encountered else if (Land[yy, xx] <> 0) then begin @@ -4534,7 +4534,7 @@ Gear^.Y:= Gear^.Y + Gear^.dY; Gear^.dX := Gear^.dX + cWindSpeed / 4; Gear^.dY := Gear^.dY + cGravity / 100; - if (GameTicks mod 250) = 0 then + if (GameTicks and $FF) = 0 then doMakeExplosion(hwRound(Gear^.X), hwRound(Gear^.Y), 20, Gear^.Hedgehog, EXPLDontDraw or EXPLNoGfx or EXPLNoDamage or EXPLDoNotTouchAny or EXPLPoisoned); AllInactive:= false; end;