shithub: choc

Download patch

ref: 96721fe80d811d1c6db6146578b147b2b7085b6f
parent: 2b20ce64a869e112be68217f1d44ca2c870d0d0e
author: Turo Lamminen <turotl@gmail.com>
date: Tue Dec 4 13:40:09 EST 2018

hexen: Make TryPickupWeapon message parameter const

--- a/src/hexen/p_inter.c
+++ b/src/hexen/p_inter.c
@@ -53,7 +53,7 @@
                               mobj_t * artifact);
 static void TryPickupWeapon(player_t * player, pclass_t weaponClass,
                             weapontype_t weaponType, mobj_t * weapon,
-                            char *message);
+                            const char *message);
 static void TryPickupWeaponPiece(player_t * player, pclass_t matchClass,
                                  int pieceValue, mobj_t * pieceMobj);
 
@@ -190,7 +190,7 @@
 
 static void TryPickupWeapon(player_t * player, pclass_t weaponClass,
                             weapontype_t weaponType, mobj_t * weapon,
-                            char *message)
+                            const char *message)
 {
     boolean remove;
     boolean gaveMana;