commit 591ce05dc9034d412f9104cc24e04b8074103409
Author: Turo Lamminen <turol@iki.fi>
AuthorDate: Tue Sep 13 19:20:29 2022 +0300
Commit: Turo Lamminen <turol@iki.fi>
CommitDate: Mon Oct 3 12:52:15 2022 +0300
hexen: Move TextKeyMessages extern declaration to p_local.h
---
src/hexen/p_acs.c | 2 --
src/hexen/p_local.h | 2 ++
src/hexen/p_spec.c | 1 -
3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/hexen/p_acs.c b/src/hexen/p_acs.c
index 3980d3a2..be4aa18a 100644
--- a/src/hexen/p_acs.c
+++ b/src/hexen/p_acs.c
@@ -677,8 +677,6 @@ boolean P_StartLockedACS(line_t * line, byte * args, mobj_t * mo, int side)
byte newArgs[5];
char LockedBuffer[80];
- extern const char *TextKeyMessages[];
-
lock = args[4];
if (!mo->player)
{
diff --git a/src/hexen/p_local.h b/src/hexen/p_local.h
index e7a24a15..9b0c0207 100644
--- a/src/hexen/p_local.h
+++ b/src/hexen/p_local.h
@@ -282,6 +282,8 @@ extern mobj_t **blocklinks; // for thing chains
// ***** 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);
diff --git a/src/hexen/p_spec.c b/src/hexen/p_spec.c
index 41e16720..400bf70d 100644
--- a/src/hexen/p_spec.c
+++ b/src/hexen/p_spec.c
@@ -408,7 +408,6 @@ boolean EV_SectorSoundChange(byte * args)
static boolean CheckedLockedDoor(mobj_t * mo, byte lock)
{
- extern const char *TextKeyMessages[];
char LockedBuffer[80];
if (!mo->player)