More trap sanity
This commit is contained in:
+3
-3
@@ -6134,9 +6134,9 @@ trap_sanity_check(void)
|
|||||||
|
|
||||||
while (ttmp) {
|
while (ttmp) {
|
||||||
if (!isok(ttmp->tx, ttmp->ty))
|
if (!isok(ttmp->tx, ttmp->ty))
|
||||||
impossible("trap sanity: location");
|
impossible("trap sanity: location (%i,%i)", ttmp->tx, ttmp->ty);
|
||||||
if (ttmp->ttyp < 0 || ttmp->ttyp >= TRAPNUM)
|
if (ttmp->ttyp <= NO_TRAP || ttmp->ttyp >= TRAPNUM)
|
||||||
impossible("trap sanity: type");
|
impossible("trap sanity: type (%i)", ttmp->ttyp);
|
||||||
ttmp = ttmp->ntrap;
|
ttmp = ttmp->ntrap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user