Changeset 1452

Show
Ignore:
Timestamp:
06/23/09 19:02:42 (15 months ago)
Author:
ajps
Message:

Make the drop command functional again, as reported on oook by zen0. And put a licence header on the file while I'm there.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game-cmd.c

    r1448 r1452  
    1  
     1/* 
     2 * File: game-cmd.c 
     3 * Purpose: Handles the queueing of game commands. 
     4 * 
     5 * Copyright (c) 2008-9 Antony Sidwell 
     6 * 
     7 * This work is free software; you can redistribute it and/or modify it 
     8 * under the terms of either: 
     9 * 
     10 * a) the GNU General Public License as published by the Free Software 
     11 *    Foundation, version 2, or 
     12 * 
     13 * b) the "Angband licence": 
     14 *    This software may be copied and distributed for educational, research, 
     15 *    and not for profit purposes provided that this copyright and statement 
     16 *    are included in all such copies.  Other copyrights may also apply. 
     17 */ 
    218#include "angband.h" 
    319#include "game-cmd.h" 
     
    6985        { CMD_WIELD, { arg_ITEM, arg_END }, do_cmd_wield, FALSE }, 
    7086        { CMD_TAKEOFF, { arg_ITEM, arg_END }, do_cmd_takeoff, FALSE }, 
    71         { CMD_DROP, { arg_ITEM, arg_END }, do_cmd_drop, FALSE }, 
     87        { CMD_DROP, { arg_ITEM, arg_NUMBER, arg_END }, do_cmd_drop, FALSE }, 
    7288        { CMD_UNINSCRIBE, { arg_ITEM, arg_END }, do_cmd_uninscribe, FALSE }, 
    7389        { CMD_EAT, { arg_ITEM, arg_END }, do_cmd_use, FALSE },