shithub: choc

Download patch

ref: 591ce05dc9034d412f9104cc24e04b8074103409
parent: 46091b65134b680febd9ce0dd993f91dece2afcb
author: Turo Lamminen <turol@iki.fi>
date: Tue Sep 13 15:20:29 EDT 2022

hexen: Move TextKeyMessages extern declaration to p_local.h

--- a/src/hexen/p_acs.c
+++ b/src/hexen/p_acs.c
@@ -677,8 +677,6 @@
     byte newArgs[5];
     char LockedBuffer[80];
 
-    extern const char *TextKeyMessages[];
-
     lock = args[4];
     if (!mo->player)
     {
--- a/src/hexen/p_local.h
+++ b/src/hexen/p_local.h
@@ -282,6 +282,8 @@
 // ***** P_INTER *****
 
 extern int clipmana[NUMMANA];
+extern const char *TextKeyMessages[];
+
 
 void P_SetMessage(player_t * player, const char *message, boolean ultmsg);
 void P_SetYellowMessage(player_t * player, const char *message, boolean ultmsg);
--- a/src/hexen/p_spec.c
+++ b/src/hexen/p_spec.c
@@ -408,7 +408,6 @@
 
 static boolean CheckedLockedDoor(mobj_t * mo, byte lock)
 {
-    extern const char *TextKeyMessages[];
     char LockedBuffer[80];
 
     if (!mo->player)