Fix weapon pickup sound

This commit is contained in:
nukeykt 2019-11-14 07:57:21 +09:00 committed by Christoph Oelckers
parent cd6bbd96a7
commit 2f1a53e5c4

View file

@ -2317,6 +2317,8 @@ do_default_b:
nPlayerWeapons[nPlayer] |= var_18; nPlayerWeapons[nPlayer] |= var_18;
AddAmmo(nPlayer, WeaponInfo[weapons].nAmmoType, ebx); AddAmmo(nPlayer, WeaponInfo[weapons].nAmmoType, ebx);
var_88 = StaticSound[kSound72];
} }
if (var_40 == 2) { if (var_40 == 2) {
@ -2377,6 +2379,8 @@ do_default_b:
nPlayerWeapons[nPlayer] |= var_18; nPlayerWeapons[nPlayer] |= var_18;
AddAmmo(nPlayer, WeaponInfo[weapons].nAmmoType, ebx); AddAmmo(nPlayer, WeaponInfo[weapons].nAmmoType, ebx);
var_88 = StaticSound[kSound72];
} }
if (var_40 == 2) { if (var_40 == 2) {
@ -2437,6 +2441,8 @@ do_default_b:
nPlayerWeapons[nPlayer] |= var_18; nPlayerWeapons[nPlayer] |= var_18;
AddAmmo(nPlayer, WeaponInfo[weapons].nAmmoType, ebx); AddAmmo(nPlayer, WeaponInfo[weapons].nAmmoType, ebx);
var_88 = StaticSound[kSound72];
} }
if (var_40 == 2) { if (var_40 == 2) {
@ -2497,6 +2503,8 @@ do_default_b:
nPlayerWeapons[nPlayer] |= var_18; nPlayerWeapons[nPlayer] |= var_18;
AddAmmo(nPlayer, WeaponInfo[weapons].nAmmoType, ebx); AddAmmo(nPlayer, WeaponInfo[weapons].nAmmoType, ebx);
var_88 = StaticSound[kSound72];
} }
if (var_40 == 2) { if (var_40 == 2) {
@ -2557,6 +2565,8 @@ do_default_b:
nPlayerWeapons[nPlayer] |= var_18; nPlayerWeapons[nPlayer] |= var_18;
AddAmmo(nPlayer, WeaponInfo[weapons].nAmmoType, ebx); AddAmmo(nPlayer, WeaponInfo[weapons].nAmmoType, ebx);
var_88 = StaticSound[kSound72];
} }
if (var_40 == 2) { if (var_40 == 2) {
@ -2617,6 +2627,8 @@ do_default_b:
nPlayerWeapons[nPlayer] |= var_18; nPlayerWeapons[nPlayer] |= var_18;
AddAmmo(nPlayer, WeaponInfo[weapons].nAmmoType, ebx); AddAmmo(nPlayer, WeaponInfo[weapons].nAmmoType, ebx);
var_88 = StaticSound[kSound72];
} }
if (var_40 == 2) { if (var_40 == 2) {