foxygit / doom Log in
commit 275671aaafbda33fe4ea0f01e4f05cdf1c148d33
Author:     James Haley <haleyjd@hotmail.com>
AuthorDate: Mon Dec 15 10:46:15 2014 -0600
Commit:     James Haley <haleyjd@hotmail.com>
CommitDate: Mon Dec 15 10:46:15 2014 -0600

    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.
---
 src/strife/p_dialog.c | 1 +
 1 file changed, 1 insertion(+)

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))