Changeset 819 for trunk/src/cmd3.c

Show
Ignore:
Timestamp:
03/26/08 12:57:49 (2 years ago)
Author:
ajps
Message:

Revised the way mouse click targetting works to fix #326 and #327 - it
should now actually be possible to target and look around using clicks.

New behaviour is that first click moves the cursor and 'looks', another
click in the place highlighted carries out the action (setting target,
launching projectile, whatever). Clicks on monsters target monsters,
otherwise the grid is targetted.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/cmd3.c

    r789 r819  
    489489{ 
    490490        /* Target set */ 
    491         if (target_set_interactive(TARGET_KILL)) 
     491        if (target_set_interactive(TARGET_KILL, -1, -1)) 
    492492        { 
    493493                msg_print("Target Selected."); 
     
    509509{ 
    510510        /* Look around */ 
    511         if (target_set_interactive(TARGET_LOOK)) 
     511        if (target_set_interactive(TARGET_LOOK, -1, -1)) 
    512512        { 
    513513                msg_print("Target Selected.");