commit a3f891402b02b6574530a4dc162514052d087d6c
Author: Turo Lamminen <turol@iki.fi>
AuthorDate: Tue Sep 13 19:41:56 2022 +0300
Commit: Turo Lamminen <turol@iki.fi>
CommitDate: Mon Oct 3 12:52:15 2022 +0300
hexen: Move ArmorMax extern declaration to p_local.h
---
src/hexen/p_inter.c | 2 --
src/hexen/p_local.h | 2 ++
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/hexen/p_inter.c b/src/hexen/p_inter.c
index 26a0164c..c99371f4 100644
--- a/src/hexen/p_inter.c
+++ b/src/hexen/p_inter.c
@@ -567,8 +567,6 @@ boolean P_GiveArmor(player_t * player, armortype_t armortype, int amount)
int hits;
int totalArmor;
- extern int ArmorMax[NUMCLASSES];
-
if (amount == -1)
{
hits = ArmorIncrement[player->class][armortype];
diff --git a/src/hexen/p_local.h b/src/hexen/p_local.h
index 3f4596d1..0d72449d 100644
--- a/src/hexen/p_local.h
+++ b/src/hexen/p_local.h
@@ -101,6 +101,8 @@ void P_PostMorphWeapon(player_t * player, weapontype_t weapon);
// ***** P_USER *****
+
+extern int ArmorMax[NUMCLASSES];
extern int PStateNormal[NUMCLASSES];
extern int PStateRun[NUMCLASSES];
extern int PStateAttack[NUMCLASSES];