GTR_HURTMESSAGES

This commit is contained in:
Jaime Passos 2019-12-24 16:09:00 -03:00
parent d76c4eaba8
commit b740daf5bf
3 changed files with 3 additions and 1 deletions

View file

@ -8899,6 +8899,7 @@ static const char *const GAMETYPERULE_LIST[] = {
"ALLOWEXIT",
"NOTITLECARD",
"OVERTIME",
"HURTMESSAGES",
NULL
};

View file

@ -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

View file

@ -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)