summaryrefslogtreecommitdiff
path: root/src/cmd1.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-02-23 09:12:00 +0100
committerBardur Arantsson <bardur@scientician.net>2015-02-23 09:12:00 +0100
commit205a2dab56c8661413f2927737794fdd57437075 (patch)
tree6c8ce51f460f9dc46abcc981bb8b094cc3d54a55 /src/cmd1.cc
parent754e2465d65f64085d27eed6f4bc142bec7b3c24 (diff)
Move cmd1.cc function declarations to separate header file
Also remove unused step_effects() function while we're at it
Diffstat (limited to 'src/cmd1.cc')
-rw-r--r--src/cmd1.cc41
1 files changed, 2 insertions, 39 deletions
diff --git a/src/cmd1.cc b/src/cmd1.cc
index bd351d0d..e914e620 100644
--- a/src/cmd1.cc
+++ b/src/cmd1.cc
@@ -6,6 +6,8 @@
* included in all such copies.
*/
+#include "cmd1.hpp"
+
#include "angband.h"
#include "cave.hpp"
#include "gods.hpp"
@@ -4288,45 +4290,6 @@ void run_step(int dir)
/*
- * Take care of the various things that can happen when you step
- * into a space. (Objects, traps, and stores.)
- */
-void step_effects(int y, int x, int do_pickup)
-{
- /* Handle "objects" */
- py_pickup_floor(do_pickup);
-
- /* Handle "store doors" */
- if (cave[y][x].feat == FEAT_SHOP)
- {
- /* Disturb */
- disturb(0);
-
- /* Hack -- Enter store */
- command_new = KTRL('V');
- }
-
- /* Discover/set off traps */
- else if (cave[y][x].t_idx != 0)
- {
- /* Disturb */
- disturb(0);
-
- if (!(cave[y][x].info & CAVE_TRDT))
- {
- /* Message */
- msg_print("You found a trap!");
-
- /* Pick a trap */
- pick_trap(y, x);
- }
-
- /* Hit the trap */
- hit_trap();
- }
-}
-
-/*
* Issue a pet command
*/
void do_cmd_pet(void)