From 88d21e69f50d4a86b2f64f5f78bdf8c6d152d951 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Wed, 14 Nov 2018 00:27:04 +0100 Subject: Work around control code causing segfaults. --- src/game/g_cmds.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index fb59950..99d24d1 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -1309,6 +1309,9 @@ static void Cmd_SayArea_f( gentity_t *ent ) VectorSubtract( ent->s.origin, range, mins ); num = trap_EntitiesInBox( mins, maxs, entityList, MAX_GENTITIES ); + + // FIXME: the commented out bit causes segfaults +/* for( i = 0; i < num; i++ ) { if (g_clients[entityList[i]].pers.connected != CON_DISCONNECTED && g_clients[entityList[i]].pers.control != 0) @@ -1320,6 +1323,7 @@ static void Cmd_SayArea_f( gentity_t *ent ) } G_SayTo( ent, &g_entities[ entityList[ i ] ], SAY_TEAM, color, name, msg, prefix ); } +*/ //Send to ADMF_SPEC_ALLCHAT candidates for( i = 0; i < level.maxclients; i++ ) -- cgit