Attempting to open down or at yourself is same as #loot

Trying to open at the same location as you did nothing,
make it loot instead. Apparently #looting is also annoying
when using vi-keys.

Based on code by aosdict
This commit is contained in:
Pasi Kallinen
2018-03-14 20:06:35 +02:00
parent cbf6f83a8b
commit a785663c58
2 changed files with 3 additions and 1 deletions

View File

@@ -630,8 +630,9 @@ int x, y;
} else if (!get_adjacent_loc((char *) 0, (char *) 0, u.ux, u.uy, &cc))
return 0;
/* open at yourself/up/down */
if ((cc.x == u.ux) && (cc.y == u.uy))
return 0;
return doloot();
if (stumble_on_door_mimic(cc.x, cc.y))
return 1;