summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 65f34ef6..d194c142 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -1700,7 +1700,8 @@ void Cmd_Destroy_f( gentity_t *ent )
ent->client->ps.stats[ STAT_MISC ] +=
BG_Buildable( traceEnt->s.modelindex )->buildTime / 4;
}
- G_LogDestruction( traceEnt, ent, MOD_DECONSTRUCT );
+ G_Damage( traceEnt, ent, ent, forward, tr.endpos,
+ traceEnt->health, 0, MOD_DECONSTRUCT );
G_FreeEntity( traceEnt );
}
}