Browse Source

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

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

+ 6 - 2
fight.c

@@ -4635,8 +4635,12 @@ PAL_BattleEnemyPerformAction(
          g_Battle.rgEnemy[wEnemyIndex].pos = PAL_XY(x, y);
          PAL_BattleDelay(1, 0, FALSE);
       }
-
-      SOUND_Play(g_Battle.rgEnemy[wEnemyIndex].e.wActionSound);
+#ifdef PAL_WIN95
+      if (g_Battle.rgEnemy[wEnemyIndex].e.wActionSound != 0)
+#endif
+      {
+         SOUND_Play(g_Battle.rgEnemy[wEnemyIndex].e.wActionSound);
+      }
       PAL_BattleDelay(1, 0, FALSE);
 
       ex = PAL_X(g_Battle.rgPlayer[sTarget].pos) - 44;