mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-08 20:26:17 +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
|
||||
if (!player)
|
||||
return LUA_ErrInvalid(L, "player_t");
|
||||
P_RestoreMusic(player);
|
||||
return 0;
|
||||
if (!player || P_IsLocalPlayer(player))
|
||||
{
|
||||
P_RestoreMusic(player);
|
||||
lua_pushboolean(L, true);
|
||||
}
|
||||
else
|
||||
lua_pushnil(L);
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int lib_pSpawnShieldOrb(lua_State *L)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue