hedgewars/uGearsHedgehog.pas
changeset 12318 f4d3810a3b54
parent 12304 95cd64676f73
child 12322 9aa483762025
equal deleted inserted replaced
12317:b81a1d1497c4 12318:f4d3810a3b54
   330                                  if (LeftX > hwRound(Gear^.X) - Gear^.Karma) or (RightX < hwRound(Gear^.X) + Gear^.Karma) or (cWaterLine < hwRound(Gear^.Y) + Gear^.Karma) then
   330                                  if (LeftX > hwRound(Gear^.X) - Gear^.Karma) or (RightX < hwRound(Gear^.X) + Gear^.Karma) or (cWaterLine < hwRound(Gear^.Y) + Gear^.Karma) then
   331                                      PlaySound(sndDroplet2)
   331                                      PlaySound(sndDroplet2)
   332                                  else
   332                                  else
   333                                      // Duck spawned in air, normal drop sound
   333                                      // Duck spawned in air, normal drop sound
   334                                      PlaySound(sndDuckDrop);
   334                                      PlaySound(sndDuckDrop);
   335                                  newGear:= AddGear(hwRound(lx), hwRound(ly), gtDuck, 0, _0, _0, 0);
   335                                  newGear:= AddGear(hwRound(lx) + hwSign(dX) * 7, hwRound(ly), gtDuck, 0, SignAs(_0_03, dX), _0, 0);
   336                                  if not ((not dX.isNegative) xor ((State and gstHHHJump) <> 0)) then
   336                                  if not ((not dX.isNegative) xor ((State and gstHHHJump) <> 0)) then
   337                                      newGear^.Tag:= -1
   337                                      newGear^.Tag:= -1
   338                                  else
   338                                  else
   339                                      newGear^.Tag:= 1;
   339                                      newGear^.Tag:= 1;
   340                                  end;
   340                                  end;