hedgewars/uGearsRender.pas
changeset 6986 409dd3851309
parent 6982 8d41d22a291d
child 6999 486db9d26e4b
equal deleted inserted replaced
6985:caa41003f42c 6986:409dd3851309
  1013                     else if Gear^.State and gsttmpFlag = 0 then
  1013                     else if Gear^.State and gsttmpFlag = 0 then
  1014                         DrawRotatedF(sprExplosivesRoll, x, y + 4, 0, 0, Gear^.DirAngle)
  1014                         DrawRotatedF(sprExplosivesRoll, x, y + 4, 0, 0, Gear^.DirAngle)
  1015                     else
  1015                     else
  1016                         DrawRotatedF(sprExplosivesRoll, x, y + 4, 1, 0, Gear^.DirAngle);
  1016                         DrawRotatedF(sprExplosivesRoll, x, y + 4, 1, 0, Gear^.DirAngle);
  1017                     end;
  1017                     end;
  1018         gtDynamite: DrawSprite2(sprDynamite, x - 16, y - 25, Gear^.Tag and 1, Gear^.Tag shr 1);
  1018         gtDynamite: DrawSprite(sprDynamite, x - 16, y - 25, Gear^.Tag and 1, Gear^.Tag shr 1);
  1019      gtClusterBomb: DrawRotated(sprClusterBomb, x, y, 0, Gear^.DirAngle);
  1019      gtClusterBomb: DrawRotated(sprClusterBomb, x, y, 0, Gear^.DirAngle);
  1020          gtCluster: DrawSprite(sprClusterParticle, x - 8, y - 8, 0);
  1020          gtCluster: DrawSprite(sprClusterParticle, x - 8, y - 8, 0);
  1021            gtFlame: if Gear^.Tag and 1 = 0 then
  1021            gtFlame: if Gear^.Tag and 1 = 0 then
  1022                          DrawTextureF(SpritesData[sprFlame].Texture, 2 / (Gear^.Tag mod 3 + 2), x, y, (GameTicks shr 7 + LongWord(Gear^.Tag)) mod 8, 1, 16, 16)
  1022                          DrawTextureF(SpritesData[sprFlame].Texture, 2 / (Gear^.Tag mod 3 + 2), x, y, (GameTicks shr 7 + LongWord(Gear^.Tag)) mod 8, 1, 16, 16)
  1023                     else DrawTextureF(SpritesData[sprFlame].Texture, 2 / (Gear^.Tag mod 3 + 2), x, y, (GameTicks shr 7 + LongWord(Gear^.Tag)) mod 8, -1, 16, 16);
  1023                     else DrawTextureF(SpritesData[sprFlame].Texture, 2 / (Gear^.Tag mod 3 + 2), x, y, (GameTicks shr 7 + LongWord(Gear^.Tag)) mod 8, -1, 16, 16);