mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-05 15:43:08 +00:00
Make S_StopMusic return nil for invalid player, true otherwise
This commit is contained in:
parent
21ec9d49fe
commit
9b50322924
1 changed files with 5 additions and 0 deletions
|
|
@ -2331,7 +2331,12 @@ static int lib_sStopMusic(lua_State *L)
|
||||||
return LUA_ErrInvalid(L, "player_t");
|
return LUA_ErrInvalid(L, "player_t");
|
||||||
}
|
}
|
||||||
if (!player || P_IsLocalPlayer(player))
|
if (!player || P_IsLocalPlayer(player))
|
||||||
|
{
|
||||||
S_StopMusic();
|
S_StopMusic();
|
||||||
|
lua_pushboolean(L, true)
|
||||||
|
}
|
||||||
|
else
|
||||||
|
lua_pushnil(L);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue