diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2020-03-29 21:40:00 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2020-03-29 21:58:05 +0200 |
commit | c708d91dbfd691b965e1d5fb06cf6f95e3673000 (patch) | |
tree | a0d8080e4be67bfb4605322c81f4993365636218 /src/game/g_client.c | |
parent | 5636a964d35ab2af5bb6f2f289f72478b41788fb (diff) |
Hide debug info (g_covidDebug)
Diffstat (limited to 'src/game/g_client.c')
-rw-r--r-- | src/game/g_client.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c index 58ad321..7a81133 100644 --- a/src/game/g_client.c +++ b/src/game/g_client.c @@ -1927,8 +1927,9 @@ void ClientSpawn( gentity_t *ent, gentity_t *spawn, vec3_t origin, vec3_t angles && ent->client->covidKind < COVID_RECOVERED ) goto spawn_healthy; } - - trap_SendServerCommand( ent - g_entities, "print \"^1COVID^7: You're patient zero.\n\"" ); + + if( g_covidDebug.integer ) + trap_SendServerCommand( ent - g_entities, "print \"^1COVID^7: You're patient zero.\n\"" ); G_ContractCoronavirus( ent ); } spawn_healthy: |