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.
This commit is contained in:
cohrs
2002-08-04 23:04:56 +00:00
parent 4fd1cc98a9
commit 2d21a12ad5

View File

@@ -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.
*/