From 011593acd80550281f6b0702546dd9760805c4e6 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Tue, 14 Apr 2015 06:39:21 +0200 Subject: Remove dead code --- src/xtra2.cc | 96 ------------------------------------------------------------ 1 file changed, 96 deletions(-) (limited to 'src/xtra2.cc') diff --git a/src/xtra2.cc b/src/xtra2.cc index 019d21c4..2727a047 100644 --- a/src/xtra2.cc +++ b/src/xtra2.cc @@ -5266,102 +5266,6 @@ bool_ tgt_pt(int *x, int *y) return success; } -bool_ get_hack_dir(int *dp) -{ - int dir; - cptr p; - char command; - - - /* Initialize */ - (*dp) = 0; - - /* Global direction */ - dir = 0; - - /* (No auto-targetting */ - - /* Ask until satisfied */ - while (!dir) - { - /* Choose a prompt */ - if (!target_okay()) - { - p = "Direction ('*' to choose a target, Escape to cancel)? "; - } - else - { - p = "Direction ('5' for target, '*' to re-target, Escape to cancel)? "; - } - - /* Get a command (or Cancel) */ - if (!get_com(p, &command)) break; - - /* Convert various keys to "standard" keys */ - switch (command) - { - /* Use current target */ - case 'T': - case 't': - case '.': - case '5': - case '0': - { - dir = 5; - break; - } - - /* Set new target */ - case '*': - { - if (target_set(TARGET_KILL)) dir = 5; - break; - } - - default: - { - /* Look up the direction */ - dir = get_keymap_dir(command); - - break; - } - } - - /* Verify requested targets */ - if ((dir == 5) && !target_okay()) dir = 0; - - /* Error */ - if (!dir) bell(); - } - - /* No direction */ - if (!dir) return (FALSE); - - /* Save the direction */ - command_dir = dir; - - /* Check for confusion */ - if (p_ptr->confused) - { - /* XXX XXX XXX */ - /* Random direction */ - dir = ddd[rand_int(8)]; - } - - /* Notice confusion */ - if (command_dir != dir) - { - /* Warn the user */ - msg_print("You are confused."); - } - - /* Save direction */ - (*dp) = dir; - - /* A "valid" direction was entered */ - return (TRUE); -} - /* * Set "p_ptr->grace", notice observable changes */ -- cgit v1.2.3