summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/deh_misc.c5
-rw-r--r--src/p_inter.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/src/deh_misc.c b/src/deh_misc.c
index 11a7bc48..c8107858 100644
--- a/src/deh_misc.c
+++ b/src/deh_misc.c
@@ -62,9 +62,8 @@ int deh_max_armor = DEH_DEFAULT_MAX_ARMOR;
// This is the armor class that is given when picking up the green
// armor or an armor helmet. See P_TouchSpecialThing in p_inter.c
//
-// Question: Does DOS dehacked modify the armor helmet behavior
-// as well as the green armor behavior? I am currently following
-// the Boom behavior, which is "yes".
+// DOS dehacked only modifies the behavior of the green armor shirt,
+// the armor class set by armor helmets is not affected.
int deh_green_armor_class = DEH_DEFAULT_GREEN_ARMOR_CLASS;
diff --git a/src/p_inter.c b/src/p_inter.c
index 64b9bc81..ee91bcd6 100644
--- a/src/p_inter.c
+++ b/src/p_inter.c
@@ -392,8 +392,10 @@ P_TouchSpecialThing
player->armorpoints++; // can go over 100%
if (player->armorpoints > deh_max_armor)
player->armorpoints = deh_max_armor;
+ // deh_green_armor_class only applies to the green armor shirt;
+ // for the armor helmets, armortype 1 is always used.
if (!player->armortype)
- player->armortype = deh_green_armor_class;
+ player->armortype = 1;
player->message = DEH_String(GOTARMBONUS);
break;