Never route a travel path through boulders in Sokoban

Change via Dynahack by Tung Nguyen
This commit is contained in:
Pasi Kallinen
2016-01-06 01:04:56 +02:00
parent e92b80b2ab
commit a049cd070b

View File

@@ -827,6 +827,9 @@ int mode;
} else if (mode == TEST_TRAV) {
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 */
if (sobj_at(BOULDER, ux, uy) && !Sokoban) {
if (!Passes_walls