# HG changeset patch # User sheepluva # Date 1385806472 -3600 # Node ID b3fefde4cff75f6c3ba29708148707b6279af8dd # Parent 31d10d684e90ad7f1a45d3c5bc89113b1c95dce2 fixing position of spawning sparkles of target gears by applying a filthy workaround for a filthy bug in the filthy filthy doStepCase handler. please read issue 721 ps: filthy. diff -r 31d10d684e90 -r b3fefde4cff7 hedgewars/uGearsHandlersMess.pas --- a/hedgewars/uGearsHandlersMess.pas Fri Nov 29 18:46:32 2013 +0100 +++ b/hedgewars/uGearsHandlersMess.pas Sat Nov 30 11:14:32 2013 +0100 @@ -2010,7 +2010,11 @@ procedure doStepTarget(Gear: PGear); begin if (Gear^.Timer = 0) and (Gear^.Tag = 0) then + begin PlaySound(sndWarp); + // workaround: save spawn Y for doStepCase (which is a mess atm) + Gear^.Angle:= hwRound(Gear^.Y); + end; if (Gear^.Tag = 0) and (Gear^.Timer < 1000) then inc(Gear^.Timer)