Permit lowercase enum grabs for sounds in get_number outside of Lua

A different solution to the issue reported on the SRB2 port of this branch. We don't care quite as much about exact game behaviour, so this permits lowercase sound effects (same as the source code) in maps' stringargs.
This commit is contained in:
toaster 2023-07-21 16:20:25 +01:00
parent 63450740ba
commit b4bd8f428d

View file

@ -493,7 +493,7 @@ static inline int lib_getenum(lua_State *L)
if (mathlib) return luaL_error(L, "player sprite '%s' could not be found.\n", word);
return 0;
}
else if (!mathlib && fastncmp("sfx_",word,4)) {
else if (fastncmp("sfx_",word,4)) {
p = word+4;
for (i = 0; i < NUMSFX; i++)
if (S_sfx[i].name && fastcmp(p, S_sfx[i].name)) {