diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-17 07:14:33 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-17 07:14:33 +0000 |
commit | 3e150a880447536a0af58c395e5a857635e985d3 (patch) | |
tree | 867c3504f60ee9bfd2fa5db3dd66d5b3a1649ecd /games/hack/hack.trap.c | |
parent | 8e78a24e2e89c03ac53bd758a1781c925fe7ab71 (diff) |
r?index -> strr?chr
Diffstat (limited to 'games/hack/hack.trap.c')
-rw-r--r-- | games/hack/hack.trap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/hack/hack.trap.c b/games/hack/hack.trap.c index dbcb12140a4..edf876f39a2 100644 --- a/games/hack/hack.trap.c +++ b/games/hack/hack.trap.c @@ -160,7 +160,7 @@ mintrap(mtmp) register struct monst *mtmp; { mtmp->mtrapseen |= (1 << tt); switch (tt) { case BEAR_TRAP: - if(index(mlarge, mtmp->data->mlet)) { + if(strchr(mlarge, mtmp->data->mlet)) { if(in_sight) pline("%s is caught in a bear trap!", Monnam(mtmp)); @@ -172,7 +172,7 @@ mintrap(mtmp) register struct monst *mtmp; { break; case PIT: /* there should be a mtmp/data -> floating */ - if(!index("EywBfk'& ", mtmp->data->mlet)) { /* ab */ + if(!strchr("EywBfk'& ", mtmp->data->mlet)) { /* ab */ mtmp->mtrapped = 1; if(in_sight) pline("%s falls in a pit!", Monnam(mtmp)); |