clean up some code pasted from other function

This commit is contained in:
nhmall
2018-04-21 06:57:52 -04:00
parent 13fc83a6a2
commit b938808ff0
+1 -6
View File
@@ -4929,12 +4929,7 @@ struct trap *adjtrap;
for (idx = 0; idx < 8; idx++) { for (idx = 0; idx < 8; idx++) {
if (xdir[idx] == u.dx && ydir[idx] == u.dy) if (xdir[idx] == u.dx && ydir[idx] == u.dy)
break; return TRUE;
}
/* idx is valid if < 8 */
if (idx < 8) {
int adjidx = (idx + 4) % 8;
return TRUE;
} }
return FALSE; return FALSE;
} }