mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'jesus-christ-music-remap-still-broke' into 'master'
Fix anti-Stereo Mode remap check in Lua music remapping function. See merge request kart-krew-dev/ring-racers!75
This commit is contained in:
commit
21a3489bcb
1 changed files with 2 additions and 1 deletions
|
|
@ -489,7 +489,8 @@ static int lib_mMusicRemap(lua_State *L)
|
|||
}
|
||||
|
||||
// Do not allow Lua to remap Stereo Mode tunes.
|
||||
if (strncmp("stere", tune_id, 5))
|
||||
if (strlen(tune_id) > 5
|
||||
&& toupper(tune_id[0]) == 'S' && toupper(tune_id[1]) == 'T' && toupper(tune_id[2]) == 'E' && toupper(tune_id[3]) == 'R' && toupper(tune_id[4]) == 'E')
|
||||
{
|
||||
return LUA_ErrStereo(L, tune_id);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue