Replace streq() with str_start_is(), which actually has the intended semantics.

Contributed by Michael Meyer.
This commit is contained in:
nhkeni
2022-03-18 20:33:13 -04:00
parent 39acd095b2
commit b5c5496d17
5 changed files with 38 additions and 37 deletions

View File

@@ -3196,7 +3196,7 @@ wizterrainwish(struct _readobjnam_data *d)
const char *tname;
tname = trapname(trap, TRUE);
if(!streq(tname, bp, TRUE))
if (!str_start_is(bp, tname, TRUE))
continue;
/* found it; avoid stupid mistakes */
if (is_hole(trap) && !Can_fall_thru(&u.uz))