# HG changeset patch # User Wuzzy # Date 1537345381 -7200 # Node ID 4e5fcfc6f033a99aba95422fdc1733b618062a29 # Parent 5d46b4fae757af4de136c6e1f3f3627e59d3f104 Fix hedgehog being able to make walk/jump sounds before it was placed If in hog placement phase you select Skip and then pressed the walk/jump keys, you heard sounds although the hedgehog is not placed yet. diff -r 5d46b4fae757 -r 4e5fcfc6f033 hedgewars/uGearsHedgehog.pas --- a/hedgewars/uGearsHedgehog.pas Wed Sep 19 09:45:45 2018 +0200 +++ b/hedgewars/uGearsHedgehog.pas Wed Sep 19 10:23:01 2018 +0200 @@ -869,6 +869,9 @@ exit end; +if (Gear^.Hedgehog^.Unplaced) then + exit; + if ((Gear^.Message and gmAnimate) <> 0) then begin Gear^.Message:= 0;