mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
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:
parent
63450740ba
commit
b4bd8f428d
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
if (mathlib) return luaL_error(L, "player sprite '%s' could not be found.\n", word);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
else if (!mathlib && fastncmp("sfx_",word,4)) {
|
else if (fastncmp("sfx_",word,4)) {
|
||||||
p = word+4;
|
p = word+4;
|
||||||
for (i = 0; i < NUMSFX; i++)
|
for (i = 0; i < NUMSFX; i++)
|
||||||
if (S_sfx[i].name && fastcmp(p, S_sfx[i].name)) {
|
if (S_sfx[i].name && fastcmp(p, S_sfx[i].name)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue