From d52a26c6aef4a19942817778e872fd44ba27a01f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= Date: Mon, 6 Apr 2015 14:57:53 +0300 Subject: [PATCH] Fixed|Heretic: Amount of ammo given on baby/nightmare difficulty Apparently ">> 1" was intended to be "/ 2" but the right-hand operand had not been changed. Restored the vanilla Heretic version that uses a bit shift. IssueID #2010 --- doomsday/plugins/heretic/src/p_inter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doomsday/plugins/heretic/src/p_inter.c b/doomsday/plugins/heretic/src/p_inter.c index 95b5f46fb9..b0f23e2c80 100644 --- a/doomsday/plugins/heretic/src/p_inter.c +++ b/doomsday/plugins/heretic/src/p_inter.c @@ -72,7 +72,7 @@ static dd_bool giveOneAmmo(player_t *plr, ammotype_t ammoType, int numRounds) if(G_Ruleset_Skill() == SM_BABY || G_Ruleset_Skill() == SM_NIGHTMARE) { - numRounds += numRounds / 1; + numRounds += numRounds >> 1; } // Given the new ammo the player may want to change weapon automatically.