commit 8b526ef46bece8c086268b7c51eba586ec94941f
Author: Turo Lamminen <turotl@gmail.com>
AuthorDate: Sat May 5 14:38:26 2018 +0300
Commit: Turo Lamminen <turotl@gmail.com>
CommitDate: Sat May 5 14:43:14 2018 +0300
heretic: Make P_SetMessage message parameter const
---
src/heretic/p_inter.c | 2 +-
src/heretic/p_local.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/heretic/p_inter.c b/src/heretic/p_inter.c
index 190bf85c..78195687 100644
--- a/src/heretic/p_inter.c
+++ b/src/heretic/p_inter.c
@@ -121,7 +121,7 @@ static boolean GetAmmoChangePL2[NUMWEAPONS][NUMAMMO] =
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;
diff --git a/src/heretic/p_local.h b/src/heretic/p_local.h
index c3abf6df..d9126ac9 100644
--- a/src/heretic/p_local.h
+++ b/src/heretic/p_local.h
@@ -252,7 +252,7 @@ extern mobj_t **blocklinks; // for thing chains
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);