mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-03 23:42:07 +00:00
Lua: Make P_RestoreMusic follow the non-local player nil output convention
This commit is contained in:
parent
456652021e
commit
c912fab1da
1 changed files with 8 additions and 2 deletions
|
|
@ -954,8 +954,14 @@ static int lib_pRestoreMusic(lua_State *L)
|
||||||
INLEVEL
|
INLEVEL
|
||||||
if (!player)
|
if (!player)
|
||||||
return LUA_ErrInvalid(L, "player_t");
|
return LUA_ErrInvalid(L, "player_t");
|
||||||
P_RestoreMusic(player);
|
if (!player || P_IsLocalPlayer(player))
|
||||||
return 0;
|
{
|
||||||
|
P_RestoreMusic(player);
|
||||||
|
lua_pushboolean(L, true);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
lua_pushnil(L);
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int lib_pSpawnShieldOrb(lua_State *L)
|
static int lib_pSpawnShieldOrb(lua_State *L)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue