Changeset 1419 for trunk

Show
Ignore:
Timestamp:
05/31/09 21:18:40 (15 months ago)
Author:
ajps
Message:

Fix for bug which caused some wrong "game commands" to be used in "stores", introduced with command changes in r1417.

Location:
trunk/src
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/dungeon.c

    r1417 r1419  
    10991099 
    11001100                        /* Process the command */ 
    1101                         process_command(TRUE); 
     1101                        process_command(CMD_GAME, TRUE); 
    11021102 
    11031103                        /* Count this execution */ 
     
    11221122 
    11231123                        /* Get and process a command */ 
    1124                         process_command(FALSE); 
     1124                        process_command(CMD_GAME, FALSE); 
    11251125                } 
    11261126 
  • trunk/src/game-cmd.c

    r1417 r1419  
    275275 * go along with it. 
    276276 */ 
    277 void process_command(bool no_request) 
     277void process_command(cmd_context ctx, bool no_request) 
    278278{ 
    279279        int i; 
     
    281281 
    282282        /* If we've got a command to process, do it. */ 
    283         if (cmd_get(CMD_GAME, &cmd, !no_request) == 0) 
     283        if (cmd_get(ctx, &cmd, !no_request) == 0) 
    284284        { 
    285285                /* Obviously inefficient - can tune later if needed. */ 
  • trunk/src/game-cmd.h

    r1417 r1419  
    165165 
    166166/* Called by the game engine to get the player's next action. */ 
    167 void process_command(bool no_request); 
     167void process_command(cmd_context c, bool no_request); 
    168168 
    169169#endif 
  • trunk/src/store.c

    r1417 r1419  
    27542754 
    27552755        /* Let the game handle any core commands (equipping, etc) */ 
    2756         process_command(TRUE); 
     2756        process_command(CMD_STORE, TRUE); 
    27572757 
    27582758        if (redraw)