Skip to content

Commit

Permalink
Fixed: "New armour bug: blue and green armour add" (see here http://s…
Browse files Browse the repository at this point in the history
  • Loading branch information
danij committed May 2, 2009
1 parent 27bfc2d commit e19b768
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doomsday/plugins/jdoom/src/p_inter.c
Expand Up @@ -219,7 +219,7 @@ boolean P_GiveArmor(player_t* plr, int type, int points)
return false; // Don't pick up.

P_PlayerSetArmorType(plr, type);
P_PlayerGiveArmorBonus(plr, points);
P_PlayerGiveArmorBonus(plr, points - plr->armorPoints);

// Maybe unhide the HUD?
ST_HUDUnHide(plr - players, HUE_ON_PICKUP_ARMOR);
Expand Down
2 changes: 1 addition & 1 deletion doomsday/plugins/jheretic/src/p_inter.c
Expand Up @@ -227,7 +227,7 @@ boolean P_GiveArmor(player_t* plr, int type, int points)
return false;

P_PlayerSetArmorType(plr, type);
P_PlayerGiveArmorBonus(plr, points);
P_PlayerGiveArmorBonus(plr, points - plr->armorPoints);

// Maybe unhide the HUD?
ST_HUDUnHide(plr - players, HUE_ON_PICKUP_ARMOR);
Expand Down
2 changes: 1 addition & 1 deletion doomsday/plugins/jhexen/src/p_inter.c
Expand Up @@ -508,7 +508,7 @@ boolean P_GiveArmor(player_t* plr, armortype_t type, int points)
if(plr->armorPoints[type] >= points)
return false;

P_PlayerGiveArmorBonus(plr, type, points);
P_PlayerGiveArmorBonus(plr, type, points - plr->armorPoints[type]);

// Maybe unhide the HUD?
ST_HUDUnHide(plr - players, HUE_ON_PICKUP_ARMOR);
Expand Down

0 comments on commit e19b768

Please sign in to comment.