diff options
author | Tim Angus <tim@ngus.net> | 2003-08-15 02:59:39 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2003-08-15 02:59:39 +0000 |
commit | e227f846393e5f27d2ee1cc148a8ebfe2fab42c4 (patch) | |
tree | 8a717cc56a8c0a9c78444c67b8e04ea9afb380a6 /src/game/g_cmds.c | |
parent | 80de4f4d3406bf9af27dcd297f6bedb776b1fa18 (diff) |
* Prelim introduction of the blaster
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r-- | src/game/g_cmds.c | 7 |
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 ) ) { |