commit e04445dd0766dc77b818c76c85b44c2aadbf71ac
Author: Simon Howard <fraggle@gmail.com>
AuthorDate: Mon Jun 9 18:11:24 2008 +0000
Commit: Simon Howard <fraggle@gmail.com>
CommitDate: Mon Jun 9 18:11:24 2008 +0000
Always set armor class to 2 when picking up a megasphere (thanks
entryway).
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1145
---
src/deh_misc.c | 5 ++---
src/p_inter.c | 4 +++-
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/deh_misc.c b/src/deh_misc.c
index ea99fb12..11a7bc48 100644
--- a/src/deh_misc.c
+++ b/src/deh_misc.c
@@ -72,9 +72,8 @@ int deh_green_armor_class = DEH_DEFAULT_GREEN_ARMOR_CLASS;
// This is the armor class that is given when picking up the blue
// armor or a megasphere. See P_TouchSpecialThing in p_inter.c
//
-// Question: Does DOS dehacked modify the megasphere behavior
-// as well as the blue armor behavior? I am currently following
-// the Boom behavior, which is "yes".
+// DOS dehacked only modifies the MegaArmor behavior and not
+// the MegaSphere, which always gives armor type 2.
int deh_blue_armor_class = DEH_DEFAULT_BLUE_ARMOR_CLASS;
diff --git a/src/p_inter.c b/src/p_inter.c
index 484178dd..64b9bc81 100644
--- a/src/p_inter.c
+++ b/src/p_inter.c
@@ -411,7 +411,9 @@ P_TouchSpecialThing
return;
player->health = deh_megasphere_health;
player->mo->health = player->health;
- P_GiveArmor (player, deh_blue_armor_class);
+ // We always give armor type 2 for the megasphere; dehacked only
+ // affects the MegaArmor.
+ P_GiveArmor (player, 2);
player->message = DEH_String(GOTMSPHERE);
sound = sfx_getpow;
break;