From 2d21a12ad51e8d21e0e99f038c3edc61bda22d00 Mon Sep 17 00:00:00 2001 From: cohrs Date: Sun, 4 Aug 2002 23:04:56 +0000 Subject: [PATCH] R06006 - travel command infinite loop The problem was caused by a test that was added to test_move() to test the move as a regular move if it was the next step. This case affected boulders and closed doors, both of which are handled in later in do_move(). Remove the check. I think this was something I thought was needed for an intermediary version of the travel command fix, but turned out to be detrimental in the current version. --- src/hack.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/hack.c b/src/hack.c index fc74aa9e2..c5a83099f 100644 --- a/src/hack.c +++ b/src/hack.c @@ -539,9 +539,6 @@ int mode; register struct rm *tmpr = &levl[x][y]; register struct rm *ust; - /* if this is the next step, must treat as if TEST_MOVE were used */ - if (mode == TEST_TRAV && distmin(x, y, u.ux, u.uy) <= 1) mode = TEST_MOVE; - /* * Check for physical obstacles. First, the place we are going. */