summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/xtra2.cc96
-rw-r--r--src/xtra2.hpp1
2 files changed, 0 insertions, 97 deletions
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
*/
diff --git a/src/xtra2.hpp b/src/xtra2.hpp
index e7cf0057..c8a4f0a3 100644
--- a/src/xtra2.hpp
+++ b/src/xtra2.hpp
@@ -75,7 +75,6 @@ extern cptr look_mon_desc(int m_idx);
extern bool_ target_okay(void);
extern bool_ target_set(int mode);
extern bool_ get_aim_dir(int *dp);
-extern bool_ get_hack_dir(int *dp);
extern bool_ get_rep_dir(int *dp);
extern bool_ set_shadow(int v);
extern bool_ set_tim_esp(int v);