summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2014-07-14 16:09:41 +0200
committer/dev/humancontroller <devhc@example.com>2017-03-09 13:51:17 +0100
commita61357bc993ef3d3fcff2de1f1ca9423f3f9e80a (patch)
treeeccc8816c5d76a1d87b54a51dd90326db3ab2c8c
parente1b070c720d81d2eb7ccee279488bfc497b96567 (diff)
theoretically allow non-player entities to telefrag other entities
-rw-r--r--src/game/g_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_utils.c b/src/game/g_utils.c
index 83bd0c55..495a6fa9 100644
--- a/src/game/g_utils.c
+++ b/src/game/g_utils.c
@@ -569,7 +569,7 @@ void G_KillBox( gentity_t *ent )
{
hit = &g_entities[ touch[ i ] ];
- if( !hit->client )
+ if( ent->client && !hit->client ) // players can telefrag only other players
continue;
// impossible to telefrag self