ref: 77f1f76b2b0336663ec32d66cd09628afba36093
parent: 7660e72fe86c17a43d1ee51df34ff7aa0ac5b5ca
author: Turo Lamminen <turotl@gmail.com>
date: Tue Aug 7 14:39:09 EDT 2018
hexen: Make P_SetMessage message parameter const
--- a/src/hexen/p_inter.c
+++ b/src/hexen/p_inter.c
@@ -63,7 +63,7 @@
//
//--------------------------------------------------------------------------
-void P_SetMessage(player_t * player, char *message, boolean ultmsg)
+void P_SetMessage(player_t * player, const char *message, boolean ultmsg)
{
if ((player->ultimateMessage || !messageson) && !ultmsg)
{
--- a/src/hexen/p_local.h
+++ b/src/hexen/p_local.h
@@ -278,7 +278,7 @@
extern int clipmana[NUMMANA];
-void P_SetMessage(player_t * player, char *message, boolean ultmsg);
+void P_SetMessage(player_t * player, const char *message, boolean ultmsg);
void P_SetYellowMessage(player_t * player, char *message, boolean ultmsg);
void P_ClearMessage(player_t * player);
void P_TouchSpecialThing(mobj_t * special, mobj_t * toucher);