From e77fffbb142bbf692910acb4748bb58393488221 Mon Sep 17 00:00:00 2001 From: Ben Millwood Date: Sat, 3 Oct 2009 11:28:50 +0000 Subject: * Adding cg_disable(Upgrade|Build|Command)Dialogs to give greater control over what messages are suppressed * Also made another print into an MN_ that I happened to be passing at the time --- src/game/bg_public.h | 1 + src/game/g_cmds.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/game') diff --git a/src/game/bg_public.h b/src/game/bg_public.h index 64ce67d5..18c0d28f 100644 --- a/src/game/bg_public.h +++ b/src/game/bg_public.h @@ -620,6 +620,7 @@ typedef enum MN_H_SPAWN, MN_H_BUILD, MN_H_ARMOURY, + MN_H_UNKNOWNITEM, MN_H_NOSLOTS, MN_H_NOFUNDS, MN_H_ITEMHELD, diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 98e23ba3..29a2acc4 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -2135,7 +2135,7 @@ void Cmd_Buy_f( gentity_t *ent ) } else { - trap_SendServerCommand( ent-g_entities, va( "print \"Unknown item\n\"" ) ); + G_TriggerMenu( ent->client->ps.clientNum, MN_H_UNKNOWNITEM ); } //update ClientInfo -- cgit