summaryrefslogtreecommitdiff
path: root/src/game/g_combat.c
diff options
context:
space:
mode:
authorPaweł Redman <trem.redman@gmail.com>2013-09-09 23:24:54 +0200
committerPaweł Redman <trem.redman@gmail.com>2013-09-09 23:24:54 +0200
commit37b8af1e6eb90378f1290b5130c8b6882b06a219 (patch)
tree1f8c00819cf59b7147e657dcb90d9ccc2e0d7989 /src/game/g_combat.c
parent27a16fb1fa69d458fb10e6437eb07b85496b46b8 (diff)
0.1.3
Diffstat (limited to 'src/game/g_combat.c')
-rw-r--r--src/game/g_combat.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/game/g_combat.c b/src/game/g_combat.c
index b5963ab..a9e8e68 100644
--- a/src/game/g_combat.c
+++ b/src/game/g_combat.c
@@ -281,27 +281,7 @@ void player_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int
for( i = UP_NONE + 1; i < UP_NUM_UPGRADES; i++ )
BG_DeactivateUpgrade( i, self->client->ps.stats );
- // kill all player's buildables if they havent spawned yet
- // this should eliminate build timer hacks for ever
- dir[0] = dir[1] = 0.0f;
- dir[2] = 1.0f;
-
- for( i = MAX_CLIENTS, ent = g_entities + i; i < level.num_entities; i++, ent++ )
- {
- if( ent->s.eType != ET_BUILDABLE )
- continue;
-
- if( ent == self )
- continue;
-
- if( ent->spawned )
- continue;
-
- if( ent->builtBy != self->client->ps.clientNum )
- continue;
-
- G_Damage( ent, self, attacker, dir, dir, ent->health, 0, MOD_DECONSTRUCT );
- }
+ G_RemoveUnbuiltBuildables( self );
// broadcast the death event to everyone
ent = G_TempEntity( self->r.currentOrigin, EV_OBITUARY );