From c42de4ec8ce4e25d67321229ad8b4612b5c73160 Mon Sep 17 00:00:00 2001 From: Eidolon Date: Tue, 21 Oct 2025 19:25:52 -0500 Subject: [PATCH] in lieu of a case-insensitive startswith --- src/acs/call-funcs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/acs/call-funcs.cpp b/src/acs/call-funcs.cpp index 43083d62c..96696e6ff 100644 --- a/src/acs/call-funcs.cpp +++ b/src/acs/call-funcs.cpp @@ -2451,7 +2451,8 @@ bool CallFunc_MusicRemap(ACSVM::Thread *thread, const ACSVM::Word *argV, ACSVM:: tune = tuneStr->str; // Do not allow ACS to remap Stereo Mode tunes. - if (fasticmp("stere", tune)) + if (strlen(tune) > 5 + && toupper(tune[0]) == 'S' && toupper(tune[1]) == 'T' && toupper(tune[2]) == 'E' && toupper(tune[3]) == 'R' && toupper(tune[4]) == 'E') { return false; }