replace some trap function result magic numbers

This commit is contained in:
nhmall
2022-02-08 19:16:42 -05:00
parent fe03b10208
commit 947d80ec6f
8 changed files with 80 additions and 76 deletions

View File

@@ -1023,7 +1023,7 @@ m_move(register struct monst* mtmp, register int after)
if (mtmp->mtrapped) {
int i = mintrap(mtmp);
if (i >= 2) {
if (i >= Trap_Killed_Mon) {
newsym(mtmp->mx, mtmp->my);
return 2;
} /* it died */
@@ -1491,7 +1491,7 @@ m_move(register struct monst* mtmp, register int after)
}
newsym(omx, omy); /* update the old position */
if (mintrap(mtmp) >= 2) {
if (mintrap(mtmp) >= Trap_Killed_Mon) {
if (mtmp->mx)
newsym(mtmp->mx, mtmp->my);
return 2; /* it died */