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:
@@ -539,9 +539,6 @@ int mode;
|
|||||||
register struct rm *tmpr = &levl[x][y];
|
register struct rm *tmpr = &levl[x][y];
|
||||||
register struct rm *ust;
|
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.
|
* Check for physical obstacles. First, the place we are going.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user