diff options
author | Simon Howard | 2008-06-09 18:11:24 +0000 |
---|---|---|
committer | Simon Howard | 2008-06-09 18:11:24 +0000 |
commit | e04445dd0766dc77b818c76c85b44c2aadbf71ac (patch) | |
tree | 7e4b7b72ad47aa5de5b7570488b4bbe81e3cfd0a | |
parent | 196c83d2a4e6b4ba740d8a32f29933d4f473c763 (diff) | |
download | chocolate-doom-e04445dd0766dc77b818c76c85b44c2aadbf71ac.tar.gz chocolate-doom-e04445dd0766dc77b818c76c85b44c2aadbf71ac.tar.bz2 chocolate-doom-e04445dd0766dc77b818c76c85b44c2aadbf71ac.zip |
Always set armor class to 2 when picking up a megasphere (thanks
entryway).
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1145
-rw-r--r-- | src/deh_misc.c | 5 | ||||
-rw-r--r-- | 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; |