From 62a23c3088d9766003a2df61c374b8e7af5a7fdb Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sat, 22 Mar 2003 02:25:18 +0000 Subject: * Code support for the new armoury menu --- src/game/g_cmds.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/game') 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 ); } -- cgit