shithub: choc

Download patch

ref: 8b526ef46bece8c086268b7c51eba586ec94941f
parent: e78b5cbeb4b49920ae5bffd912d802699d55fe7f
author: Turo Lamminen <[email protected]>
date: Sat May 5 10:38:26 EDT 2018

heretic: Make P_SetMessage message parameter const

--- a/src/heretic/p_inter.c
+++ b/src/heretic/p_inter.c
@@ -121,7 +121,7 @@
 
 boolean ultimatemsg;
 
-void P_SetMessage(player_t * player, char *message, boolean ultmsg)
+void P_SetMessage(player_t * player, const char *message, boolean ultmsg)
 {
     extern boolean messageson;
 
--- a/src/heretic/p_local.h
+++ b/src/heretic/p_local.h
@@ -252,7 +252,7 @@
 extern int maxammo[NUMAMMO];
 extern int clipammo[NUMAMMO];
 
-void P_SetMessage(player_t * player, char *message, boolean ultmsg);
+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,
                   int damage);