Never route a travel path through boulders in Sokoban
Change via Dynahack by Tung Nguyen
This commit is contained in:
@@ -827,6 +827,9 @@ int mode;
|
|||||||
} else if (mode == TEST_TRAV) {
|
} else if (mode == TEST_TRAV) {
|
||||||
struct obj *obj;
|
struct obj *obj;
|
||||||
|
|
||||||
|
/* never travel through boulders in Sokoban */
|
||||||
|
if (Sokoban) return FALSE;
|
||||||
|
|
||||||
/* don't pick two boulders in a row, unless there's a way thru */
|
/* don't pick two boulders in a row, unless there's a way thru */
|
||||||
if (sobj_at(BOULDER, ux, uy) && !Sokoban) {
|
if (sobj_at(BOULDER, ux, uy) && !Sokoban) {
|
||||||
if (!Passes_walls
|
if (!Passes_walls
|
||||||
|
|||||||
Reference in New Issue
Block a user