Skip to content

Commit

Permalink
Fixed|Heretic: Amount of ammo given on baby/nightmare difficulty
Browse files Browse the repository at this point in the history
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
  • Loading branch information
skyjake committed Apr 6, 2015
1 parent 4cbf49a commit d52a26c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/plugins/heretic/src/p_inter.c
Expand Up @@ -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.
Expand Down

0 comments on commit d52a26c

Please sign in to comment.