summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJames Haley2014-12-15 10:46:15 -0600
committerJames Haley2014-12-15 10:46:15 -0600
commit275671aaafbda33fe4ea0f01e4f05cdf1c148d33 (patch)
treecb2201f67dbd1a9ba8b056109b831f80b5ba0d56 /src
parent5dcf8333d6fd756c88bc6875a15e2006ac4aa6f5 (diff)
downloadchocolate-doom-275671aaafbda33fe4ea0f01e4f05cdf1c148d33.tar.gz
chocolate-doom-275671aaafbda33fe4ea0f01e4f05cdf1c148d33.tar.bz2
chocolate-doom-275671aaafbda33fe4ea0f01e4f05cdf1c148d33.zip
Upstream fix from SVE: Missing break statement
This caused Rowan to fail to take Beldin's ring from you, if and only if you had full bullet ammo. Transcription error from the disassembly.
Diffstat (limited to 'src')
-rw-r--r--src/strife/p_dialog.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/strife/p_dialog.c b/src/strife/p_dialog.c
index 804084e4..a18fec7d 100644
--- a/src/strife/p_dialog.c
+++ b/src/strife/p_dialog.c
@@ -762,6 +762,7 @@ boolean P_GiveItemToPlayer(player_t *player, int sprnum, mobjtype_t type)
case SPR_CHST: // 50 gold
for(i = 0; i < 50; i++)
P_GiveInventoryItem(player, SPR_COIN, MT_MONY_1);
+ break; // haleyjd 20141215: missing break, caused Rowan to not take ring from you.
case SPR_BBOX: // Box of Bullets
if(!P_GiveAmmo(player, am_bullets, 5))