diff options
Diffstat (limited to 'src/game/g_utils.c')
-rw-r--r-- | src/game/g_utils.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/game/g_utils.c b/src/game/g_utils.c index dc960ab0..a72f57ad 100644 --- a/src/game/g_utils.c +++ b/src/game/g_utils.c @@ -540,10 +540,13 @@ void G_KillBox (gentity_t *ent) { for (i=0 ; i<num ; i++) { hit = &g_entities[touch[i]]; - if ( !hit->client ) { + if ( !hit->client ) continue; - } + //TA: impossible to telefrag self + if( ent == hit ) + continue; + // nail it G_Damage ( hit, ent, ent, NULL, NULL, 100000, DAMAGE_NO_PROTECTION, MOD_TELEFRAG); |