summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-11-14 00:27:04 +0100
committerPaweł Redman <pawel.redman@gmail.com>2018-11-14 00:27:04 +0100
commit88d21e69f50d4a86b2f64f5f78bdf8c6d152d951 (patch)
treedd60531f9140112c74f19b10335f428f991f09ec
parent0bdba56e1db429028216a235bf25394e18e42e4f (diff)
Work around control code causing segfaults.
-rw-r--r--src/game/g_cmds.c4
1 files changed, 4 insertions, 0 deletions
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++ )