From 8e684f9687e0d477418e9bebc80291f1826bdccb Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 29 Dec 2018 12:34:38 +0200 Subject: [PATCH] - fixed missing attack sound in A_CustomPunch See https://github.com/coelckers/gzdoom/blob/7bb3855439b09e09e0a45530234da06b849280ba/src/p_actionfunctions.cpp#L1729 https://forum.zdoom.org/viewtopic.php?t=63049 --- wadsrc/static/zscript/inventory/stateprovider.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/inventory/stateprovider.txt b/wadsrc/static/zscript/inventory/stateprovider.txt index 7ba48b844e..f26db87be2 100644 --- a/wadsrc/static/zscript/inventory/stateprovider.txt +++ b/wadsrc/static/zscript/inventory/stateprovider.txt @@ -317,7 +317,7 @@ class StateProvider : Inventory if (weapon != NULL) { if (MeleeSound) A_PlaySound(MeleeSound, CHAN_WEAPON); - else A_PlaySound(AttackSound, CHAN_WEAPON); + else A_PlaySound(weapon.AttackSound, CHAN_WEAPON); } if (!(flags & CPF_NOTURN))