浏览代码

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

Wei Mingzhi 9 年之前
父节点
当前提交
a6fc5fd714
共有 1 个文件被更改,包括 6 次插入2 次删除
  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;