mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-22 02:42:20 +00:00
GTR_HURTMESSAGES
This commit is contained in:
parent
d76c4eaba8
commit
b740daf5bf
3 changed files with 3 additions and 1 deletions
|
@ -8899,6 +8899,7 @@ static const char *const GAMETYPERULE_LIST[] = {
|
|||
"ALLOWEXIT",
|
||||
"NOTITLECARD",
|
||||
"OVERTIME",
|
||||
"HURTMESSAGES",
|
||||
NULL
|
||||
};
|
||||
|
||||
|
|
|
@ -416,6 +416,7 @@ enum GameTypeRules
|
|||
GTR_ALLOWEXIT = 1<<24, // Allow exit sectors
|
||||
GTR_NOTITLECARD = 1<<25, // Don't show the title card
|
||||
GTR_OVERTIME = 1<<26, // Allow overtime
|
||||
GTR_HURTMESSAGES = 1<<27, // Hit and death messages
|
||||
};
|
||||
|
||||
// String names for gametypes
|
||||
|
|
|
@ -1888,7 +1888,7 @@ static void P_HitDeathMessages(player_t *player, mobj_t *inflictor, mobj_t *sour
|
|||
char targetname[MAXPLAYERNAME+4];
|
||||
char sourcename[MAXPLAYERNAME+4];
|
||||
|
||||
if (G_PlatformGametype())
|
||||
if (!(gametyperules & (GTR_RINGSLINGER|GTR_HURTMESSAGES)))
|
||||
return; // Not in coop, etc.
|
||||
|
||||
if (!player)
|
||||
|
|
Loading…
Reference in a new issue