Use is_pit macro to check for (spiked) pit
This commit is contained in:
2
src/do.c
2
src/do.c
@@ -149,7 +149,7 @@ const char *verb;
|
||||
if (obj->otyp == BOULDER && boulder_hits_pool(obj, x, y, FALSE)) {
|
||||
return TRUE;
|
||||
} else if (obj->otyp == BOULDER && (t = t_at(x, y)) != 0
|
||||
&& (t->ttyp == PIT || t->ttyp == SPIKED_PIT
|
||||
&& (is_pit(t->ttyp)
|
||||
|| t->ttyp == TRAPDOOR || t->ttyp == HOLE)) {
|
||||
if (((mtmp = m_at(x, y)) && mtmp->mtrapped)
|
||||
|| (u.utrap && u.ux == x && u.uy == y)) {
|
||||
|
||||
Reference in New Issue
Block a user