# HG changeset patch # User Wuzzy # Date 1562858130 -7200 # Node ID a9a1f582407661cc176c4a1fab96689cb246b394 # Parent c10e9261ab9cfb8d5ceaaaa007214e6cf3226e81 Air attack: Add simple appear/disappear effect in weWrap diff -r c10e9261ab9c -r a9a1f5824076 hedgewars/uGearsHandlersMess.pas --- a/hedgewars/uGearsHandlersMess.pas Thu Jul 11 16:24:09 2019 +0200 +++ b/hedgewars/uGearsHandlersMess.pas Thu Jul 11 17:15:30 2019 +0200 @@ -3120,6 +3120,8 @@ StopSoundChan(Gear^.SoundChannel); Gear^.SoundChannel := -1; end; + if (WorldEdge = weWrap) then + AddVisualGear(hwRound(Gear^.X), hwRound(Gear^.Y), vgtBigExplosion); DeleteGear(Gear); exit; end; @@ -3176,6 +3178,11 @@ end; Gear^.Y := int2hwFloat(topY - 300); + + // Appear out of nowhere in wrap + if (WorldEdge = weWrap) then + AddVisualGear(hwRound(Gear^.X), hwRound(Gear^.Y), vgtBigExplosion); + Gear^.dX := int2hwFloat(Gear^.Target.X) - int2hwFloat(Gear^.Tag * (Gear^.Health-1) * Gear^.Damage) / 2; // calcs for Napalm Strike, so that it will hit the target (without wind at least :P)