summaryrefslogtreecommitdiff
path: root/games/hack/hack.lev.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-01-17 07:14:33 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-01-17 07:14:33 +0000
commit3e150a880447536a0af58c395e5a857635e985d3 (patch)
tree867c3504f60ee9bfd2fa5db3dd66d5b3a1649ecd /games/hack/hack.lev.c
parent8e78a24e2e89c03ac53bd758a1781c925fe7ab71 (diff)
r?index -> strr?chr
Diffstat (limited to 'games/hack/hack.lev.c')
-rw-r--r--games/hack/hack.lev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/hack/hack.lev.c b/games/hack/hack.lev.c
index e15d39ee0fd..8b65b87cfeb 100644
--- a/games/hack/hack.lev.c
+++ b/games/hack/hack.lev.c
@@ -199,7 +199,7 @@ xchar lev;
long newhp; /* tmoves may be very large */
mtmp2 = mtmp->nmon;
- if(index(genocided, mtmp->data->mlet)) {
+ if(strchr(genocided, mtmp->data->mlet)) {
mondead(mtmp);
continue;
}
@@ -210,7 +210,7 @@ xchar lev;
}
newhp = mtmp->mhp +
- (index(MREGEN, mtmp->data->mlet) ? tmoves : tmoves/20);
+ (strchr(MREGEN, mtmp->data->mlet) ? tmoves : tmoves/20);
if(newhp > mtmp->mhpmax)
mtmp->mhp = mtmp->mhpmax;
else