clean up some code pasted from other function
This commit is contained in:
+1
-6
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user