From ff252acf7f2f38e33017e82881c95825b54c7cee Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Tue, 16 Dec 2014 18:28:59 +0100 Subject: Replace uses of stricmp with boost::algorithm::iequals --- src/xtra2.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/xtra2.cc') diff --git a/src/xtra2.cc b/src/xtra2.cc index dd9b788a..397ca133 100644 --- a/src/xtra2.cc +++ b/src/xtra2.cc @@ -18,6 +18,10 @@ #include "quark.h" #include "hooks.h" +#include + +using boost::algorithm::iequals; + /* * Invoke The Rush */ @@ -5572,7 +5576,7 @@ bool_ test_object_wish(char *name, object_type *o_ptr, object_type *forge, const object_desc(buf, o_ptr, FALSE, 0); strlower(buf); - if (!stricmp(buf, name)) + if (iequals(buf, name)) { /* Don't search any more */ return TRUE; @@ -5720,7 +5724,7 @@ void make_wish(void) } strlower(buf); - if (!stricmp(mname, buf)) + if (iequals(mname, buf)) { int wy = p_ptr->py, wx = p_ptr->px; int attempts = 100; -- cgit v1.2.3