trap followup

Make the flags argument to dotrap() and mintrap() and the constants
passed to them all have consistent type: unsigned int.
This commit is contained in:
PatR
2022-02-24 12:17:21 -08:00
parent 6fa4fd46f7
commit ab2bcf4dac
6 changed files with 37 additions and 33 deletions

View File

@@ -3058,7 +3058,7 @@ zap_updown(struct obj *obj) /* wand or spell */
ttmp->tseen = 1;
newsym(x, y);
/* might fall down hole */
dotrap(ttmp, 0);
dotrap(ttmp, NO_TRAP_FLAGS);
} else if (!striking && ttmp->ttyp == HOLE) {
/* locking transforms hole into trapdoor */
ttmp->ttyp = TRAPDOOR;