shithub: choc

Download patch

ref: a3f891402b02b6574530a4dc162514052d087d6c
parent: 9f7a20c80bf2d37a5847cc624ef5d89abf9dea37
author: Turo Lamminen <[email protected]>
date: Tue Sep 13 15:41:56 EDT 2022

hexen: Move ArmorMax extern declaration to p_local.h

--- a/src/hexen/p_inter.c
+++ b/src/hexen/p_inter.c
@@ -567,8 +567,6 @@
     int hits;
     int totalArmor;
 
-    extern int ArmorMax[NUMCLASSES];
-
     if (amount == -1)
     {
         hits = ArmorIncrement[player->class][armortype];
--- a/src/hexen/p_local.h
+++ b/src/hexen/p_local.h
@@ -101,6 +101,8 @@
 
 // ***** P_USER *****
 
+
+extern int ArmorMax[NUMCLASSES];
 extern int PStateNormal[NUMCLASSES];
 extern int PStateRun[NUMCLASSES];
 extern int PStateAttack[NUMCLASSES];