Browse Source

[Issue #14] fixed: no sound effect of enemys physical attack (kinghtt)

Wei Mingzhi 9 years ago
parent
commit
8950015bc0
1 changed files with 6 additions and 2 deletions
  1. 6 2
      fight.c

+ 6 - 2
fight.c

@@ -4718,8 +4718,12 @@ PAL_BattleEnemyPerformAction(
 
          g_Battle.rgPlayer[sTarget].iColorShift = 6;
       }
-
-      SOUND_Play(iSound);
+#ifdef PAL_WIN95
+      if (iSound != 0)
+#endif
+      {
+         SOUND_Play(iSound);
+      }
       PAL_BattleDelay(1, 0, FALSE);
 
       g_Battle.rgPlayer[sTarget].iColorShift = 0;