diff options
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r-- | src/game/g_cmds.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 664df9fa..5299af18 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -2238,10 +2238,14 @@ void Cmd_Buy_f( gentity_t *ent ) G_AddCreditToClient( ent->client, -(short)BG_Upgrade( upgrade )->price, qfalse ); } else + { G_TriggerMenu( ent->client->ps.clientNum, MN_H_UNKNOWNITEM ); + return; + } //update ClientInfo ClientUserinfoChanged( ent->client->ps.clientNum, qfalse ); + ent->client->pers.infoChangeTime = level.time; } @@ -2412,10 +2416,14 @@ void Cmd_Sell_f( gentity_t *ent ) } } else + { G_TriggerMenu( ent->client->ps.clientNum, MN_H_UNKNOWNITEM ); + return; + } //update ClientInfo ClientUserinfoChanged( ent->client->ps.clientNum, qfalse ); + ent->client->pers.infoChangeTime = level.time; } |