shithub: choc

Download patch

ref: d092eff41d8e3a34563e76c5c3e69256da800373
parent: 7ebeefc592a6fb8de0990c350ddf706ca39b2341
author: Turo Lamminen <[email protected]>
date: Sat Sep 10 14:20:28 EDT 2022

heretic: Move messageson extern declaration to p_local.h

--- a/src/heretic/p_inter.c
+++ b/src/heretic/p_inter.c
@@ -125,8 +125,6 @@
 
 void P_SetMessage(player_t * player, const char *message, boolean ultmsg)
 {
-    extern boolean messageson;
-
     if ((ultimatemsg || !messageson) && !ultmsg)
     {
         return;
--- a/src/heretic/p_local.h
+++ b/src/heretic/p_local.h
@@ -252,6 +252,9 @@
 extern int maxammo[NUMAMMO];
 extern int clipammo[NUMAMMO];
 
+extern boolean messageson;
+
+
 void P_SetMessage(player_t * player, const char *message, boolean ultmsg);
 void P_TouchSpecialThing(mobj_t * special, mobj_t * toucher);
 void P_DamageMobj(mobj_t * target, mobj_t * inflictor, mobj_t * source,