summaryrefslogtreecommitdiff
path: root/src/game/g_client.c
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2020-03-29 21:40:00 +0200
committerPaweł Redman <pawel.redman@gmail.com>2020-03-29 21:40:00 +0200
commit140e2d8bc61bb045a6c196635fea4d9d389d4bb0 (patch)
treebae6d6bef239005bed94a0e8b060017b1e74fe40 /src/game/g_client.c
parenta0838b49247b72c79fca2e5de1ed9525c5d56515 (diff)
Hide debug info (g_covidDebug)
Diffstat (limited to 'src/game/g_client.c')
-rw-r--r--src/game/g_client.c5
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: