• R/O
  • SSH
  • HTTPS

junnethack: Commit


Commit MetaInfo

Revisión412 (tree)
Tiempo2011-03-27 17:09:04
Autorso-miya

Log Message

UnNetHack SVN版rev.775を適用した。
Autoexplore: fix coordinates in interesting_to_explore()
自動探索:interesting_to_explore()の座標修正

Cambiar Resumen

Diferencia

--- junnethack/trunk/src/hack.c (revision 411)
+++ junnethack/trunk/src/hack.c (revision 412)
@@ -1535,14 +1535,14 @@
15351535
15361536 /* don't leak information about secret locations */
15371537 if (levl[x][y].typ == SCORR ||
1538- levl[y][y].typ == SDOOR) {
1538+ levl[x][y].typ == SDOOR) {
15391539 return FALSE;
15401540 }
15411541 /* don't leak information about gold vaults */
15421542 if (*in_rooms(x,y,VAULT)) return FALSE;
15431543
1544- /* corridor are uninteresting */
1545- if (levl[y][y].typ == CORR) return FALSE;
1544+ /* corridors are uninteresting */
1545+ if (levl[x][y].typ == CORR) return FALSE;
15461546
15471547 return TRUE;
15481548 }
Show on old repository browser