diff UI/UICharacter.cpp @ 1754:421c29d4ab3e

UITransition.cpp cleaning(continue)
author Ritor1
date Mon, 30 Sep 2013 17:29:27 +0600
parents baa4eda7f924
children 0f1543750bf8
line wrap: on
line diff
--- a/UI/UICharacter.cpp	Mon Sep 30 11:41:55 2013 +0600
+++ b/UI/UICharacter.cpp	Mon Sep 30 17:29:27 2013 +0600
@@ -2405,7 +2405,7 @@
         }
         if ( pPlayers[uActiveCharacter]->HasUnderwaterSuitEquipped() && (pEquipType != EQUIP_ARMOUR || bUnderwater) )
         {
-          pAudioPlayer->PlaySound(SOUND_27, 0, 0, -1, 0, 0, 0, 0);
+          pAudioPlayer->PlaySound(SOUND_error, 0, 0, -1, 0, 0, 0, 0);
           return;
         }
         pPlayers[uActiveCharacter]->EquipBody(pEquipType);
@@ -2416,7 +2416,7 @@
       case EQUIP_RING:
         if ( pPlayers[uActiveCharacter]->HasUnderwaterSuitEquipped() )
         {
-          pAudioPlayer->PlaySound(SOUND_27, 0, 0, -1, 0, 0, 0, 0);
+          pAudioPlayer->PlaySound(SOUND_error, 0, 0, -1, 0, 0, 0, 0);
           return;
         }
         //слоты для колец
@@ -2453,7 +2453,7 @@
       case EQUIP_SHIELD://Щит
         if ( pPlayers[uActiveCharacter]->HasUnderwaterSuitEquipped() )//в акваланге
         {
-          pAudioPlayer->PlaySound(SOUND_27, 0, 0, -1, 0, 0, 0, 0);
+          pAudioPlayer->PlaySound(SOUND_error, 0, 0, -1, 0, 0, 0, 0);
           return;
         }
         if ( !pPlayers[uActiveCharacter]->HasSkill(pSkillType) )//нет навыка
@@ -2506,7 +2506,7 @@
           && pParty->pPickedItem.uItemID != 64
           && pParty->pPickedItem.uItemID != 65 )
         {
-          pAudioPlayer->PlaySound(SOUND_27, 0, 0, -1, 0, 0, 0, 0);
+          pAudioPlayer->PlaySound(SOUND_error, 0, 0, -1, 0, 0, 0, 0);
           return;
         }
         if ( !pPlayers[uActiveCharacter]->HasSkill(pSkillType) )
@@ -2608,7 +2608,7 @@
       case EQUIP_MAIN_HAND:
         if ( pPlayers[uActiveCharacter]->HasUnderwaterSuitEquipped() )
         {
-          pAudioPlayer->PlaySound(SOUND_27, 0, 0, -1, 0, 0, 0, 0);
+          pAudioPlayer->PlaySound(SOUND_error, 0, 0, -1, 0, 0, 0, 0);
           return;
         }
         if ( !pPlayers[uActiveCharacter]->HasSkill(pSkillType) )
@@ -2620,7 +2620,7 @@
         {
           if ( v2 )
           {
-            pAudioPlayer->PlaySound(SOUND_27, 0, 0, -1, 0, 0, 0, 0);
+            pAudioPlayer->PlaySound(SOUND_error, 0, 0, -1, 0, 0, 0, 0);
             return;
           }
           --v1;
@@ -2677,7 +2677,7 @@
     {
       if ( bUnderwater )
       {
-        pAudioPlayer->PlaySound(SOUND_27, 0, 0, -1, 0, 0, 0, 0);
+        pAudioPlayer->PlaySound(SOUND_error, 0, 0, -1, 0, 0, 0, 0);
         return;
       }
       WetsuitOff(uActiveCharacter);