Use is_hole macro to check for trapdoors and holes
This commit is contained in:
+1
-1
@@ -1159,7 +1159,7 @@ int in_sight;
|
||||
d_level tolevel;
|
||||
int migrate_typ = MIGR_RANDOM;
|
||||
|
||||
if ((tt == HOLE || tt == TRAPDOOR)) {
|
||||
if (is_hole(tt)) {
|
||||
if (Is_stronghold(&u.uz)) {
|
||||
assign_level(&tolevel, &valley_level);
|
||||
} else if (Is_botlevel(&u.uz)) {
|
||||
|
||||
Reference in New Issue
Block a user