summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2003-08-15 02:59:39 +0000
committerTim Angus <tim@ngus.net>2003-08-15 02:59:39 +0000
commite227f846393e5f27d2ee1cc148a8ebfe2fab42c4 (patch)
tree8a717cc56a8c0a9c78444c67b8e04ea9afb380a6 /src/game/g_cmds.c
parent80de4f4d3406bf9af27dcd297f6bedb776b1fa18 (diff)
* Prelim introduction of the blaster
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 009caf81..6c73b863 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -1522,6 +1522,13 @@ void Cmd_Sell_f( gentity_t *ent )
if( weapon != WP_NONE )
{
+ //are we /allowed/ to sell this?
+ if( !BG_FindPurchasableForWeapon( weapon ) )
+ {
+ trap_SendServerCommand( ent-g_entities, va( "print \"You can't sell this item\n\"" ) );
+ return;
+ }
+
//remove weapon if carried
if( BG_gotWeapon( weapon, ent->client->ps.stats ) )
{