summaryrefslogtreecommitdiff
path: root/src/game/g_combat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_combat.c')
-rw-r--r--src/game/g_combat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/g_combat.c b/src/game/g_combat.c
index e7024bfb..46a579d1 100644
--- a/src/game/g_combat.c
+++ b/src/game/g_combat.c
@@ -209,6 +209,9 @@ void player_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int
killer, self->s.number, meansOfDeath, killerName,
self->client->pers.netname, obit );
+ //TA: close any menus the client has open
+ G_CloseMenus( self->client->ps.clientNum );
+
// broadcast the death event to everyone
ent = G_TempEntity( self->r.currentOrigin, EV_OBITUARY );
ent->s.eventParm = meansOfDeath;