summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_cmds.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 47163acc..c197bdaa 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -1434,7 +1434,10 @@ void Cmd_Buy_f( gentity_t *ent )
//if the buyer previously had no items at all, force a new selection
if( numItems == 0 )
- G_AddEvent( ent, EV_NEXT_WEAPON, 0 );
+ G_AddPredictableEvent( ent, EV_NEXT_WEAPON, 0 );
+
+ //retrigger the armoury menu
+ G_AddPredictableEvent( ent, EV_MENU, MN_H_ARMOURY );
//update ClientInfo
ClientUserinfoChanged( ent->client->ps.clientNum );
@@ -1518,6 +1521,9 @@ void Cmd_Sell_f( gentity_t *ent )
else
trap_SendServerCommand( ent-g_entities, va( "print \"Unknown item\n\"" ) );
+ //retrigger the armoury menu
+ G_AddPredictableEvent( ent, EV_MENU, MN_H_ARMOURY );
+
//update ClientInfo
ClientUserinfoChanged( ent->client->ps.clientNum );
}