summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorBen Millwood <thebenmachine@gmail.com>2009-10-03 11:28:50 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:02 +0000
commite77fffbb142bbf692910acb4748bb58393488221 (patch)
tree80ae1f5e93e2919788d15c5af70d9ccc8e48248c /src/game
parent861b96715156ed2260676b0f8f5d838bd1c6db51 (diff)
* 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
Diffstat (limited to 'src/game')
-rw-r--r--src/game/bg_public.h1
-rw-r--r--src/game/g_cmds.c2
2 files changed, 2 insertions, 1 deletions
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