shithub: choc

Download patch

ref: 2fbba9a00d88f0a1538c85a7241e9b1a446fc6b5
parent: bee675c6d0f6a89c2a4e2610d04e2fdf0b6149f0
author: Turo Lamminen <turol@iki.fi>
date: Tue Sep 13 15:17:23 EDT 2022

hexen: Fix TextKeyMessages extern declarations to match definition

--- a/src/hexen/p_acs.c
+++ b/src/hexen/p_acs.c
@@ -677,7 +677,7 @@
     byte newArgs[5];
     char LockedBuffer[80];
 
-    extern char *TextKeyMessages[11];
+    extern const char *TextKeyMessages[];
 
     lock = args[4];
     if (!mo->player)
--- a/src/hexen/p_spec.c
+++ b/src/hexen/p_spec.c
@@ -408,7 +408,7 @@
 
 static boolean CheckedLockedDoor(mobj_t * mo, byte lock)
 {
-    extern char *TextKeyMessages[11];
+    extern const char *TextKeyMessages[];
     char LockedBuffer[80];
 
     if (!mo->player)