hedgewars/uGears.pas
changeset 1794 8ae48e3b02d9
parent 1792 c30c6944bd49
child 1795 2457fcc0dcd9
equal deleted inserted replaced
1793:3e8caf5fee58 1794:8ae48e3b02d9
  1124        gtExplosion: DrawSprite(sprExplosion50, hwRound(Gear^.X) - 32 + WorldDx, hwRound(Gear^.Y) - 32 + WorldDy, Gear^.State);
  1124        gtExplosion: DrawSprite(sprExplosion50, hwRound(Gear^.X) - 32 + WorldDx, hwRound(Gear^.Y) - 32 + WorldDy, Gear^.State);
  1125             gtMine: if ((Gear^.State and gstAttacking) = 0)or((Gear^.Timer and $3FF) < 420)
  1125             gtMine: if ((Gear^.State and gstAttacking) = 0)or((Gear^.Timer and $3FF) < 420)
  1126                        then DrawRotated(sprMineOff, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, 0, Gear^.DirAngle)
  1126                        then DrawRotated(sprMineOff, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, 0, Gear^.DirAngle)
  1127                        else DrawRotated(sprMineOn, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, 0, Gear^.DirAngle);
  1127                        else DrawRotated(sprMineOn, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, 0, Gear^.DirAngle);
  1128             gtCase: case Gear^.Pos of
  1128             gtCase: case Gear^.Pos of
  1129                          posCaseAmmo  : DrawSprite(sprCase, hwRound(Gear^.X) - 16 + WorldDx, hwRound(Gear^.Y) - 16 + WorldDy, 0);
  1129                          posCaseAmmo  : begin
       
  1130                                         i:= (GameTicks shr 6) mod 64;
       
  1131                                         if i > 18 then i:= 0;
       
  1132                                         DrawSprite(sprCase, hwRound(Gear^.X) - 24 + WorldDx, hwRound(Gear^.Y) - 24 + WorldDy, i);
       
  1133                                         end;
  1130                          posCaseHealth: begin
  1134                          posCaseHealth: begin
  1131                                         i:= (GameTicks shr 6) mod 64;
  1135                                         i:= (GameTicks shr 6) mod 64;
  1132                                         if i > 12 then i:= 0;
  1136                                         if i > 12 then i:= 0;
  1133                                         DrawSprite(sprFAid, hwRound(Gear^.X) - 24 + WorldDx, hwRound(Gear^.Y) - 24 + WorldDy, i);
  1137                                         DrawSprite(sprFAid, hwRound(Gear^.X) - 24 + WorldDx, hwRound(Gear^.Y) - 24 + WorldDy, i);
  1134                                         end;
  1138                                         end;