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.
--- 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)