'$' vs #jump
Hero poly'd into xorn can wear jumping boots or cast jump spell, so some target destinations which were excluded by '$' (to show valid destinations during getpos) shouldn't have been. Doubly so if wearing the Eyes of the Overworld where xorn'd hero can jump through walls rather than just into them. This attempts to deal with diagonal moves vs open doorways sanely, including allowing knight's move jumps in or out of them when appropriate. Also, need to check isok(x,y) before cansee(x,y) instead of after.
This commit is contained in:
@@ -547,8 +547,8 @@ int x, y;
|
||||
boolean odoor_diag = (IS_DOOR(levl[x][y].typ)
|
||||
&& (levl[x][y].doormask & D_ISOPEN)
|
||||
&& (u.ux - x) && (u.uy - y));
|
||||
if (IS_ROCK(levl[x][y].typ) || closed_door(x, y)
|
||||
|| odoor_diag) {
|
||||
|
||||
if (IS_ROCK(levl[x][y].typ) || closed_door(x, y) || odoor_diag) {
|
||||
const char *s;
|
||||
|
||||
if (odoor_diag)
|
||||
|
||||
Reference in New Issue
Block a user