• R/O
  • SSH
  • HTTPS

junnethack: Commit


Commit MetaInfo

Revisión402 (tree)
Tiempo2011-03-14 15:54:38
Autorso-miya

Log Message

UnNetHack SVN版rev.765を適用した。
Fix for autotravel/autoexplore walking into lava or water
自動移動/自動探索で溶岩または堀に入ってしまうのを修正

Cambiar Resumen

Diferencia

--- junnethack/trunk/src/hack.c (revision 401)
+++ junnethack/trunk/src/hack.c (revision 402)
@@ -1230,7 +1230,7 @@
12301230 /* Pick travel path that does not require crossing a trap.
12311231 * Avoid water and lava using the usual running rules.
12321232 * (but not u.ux/u.uy because findtravelpath walks toward u.ux/u.uy) */
1233- if (flags.run == 8 && (mode == TEST_MOVE || mode == TEST_TRAP) &&
1233+ if (flags.run == 8 && (mode != DO_MOVE) &&
12341234 (x != u.ux || y != u.uy)) {
12351235 struct trap* t = t_at(x, y);
12361236
Show on old repository browser