mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Re-fix the server global variable in Lua
This commit is contained in:
parent
83461f49c5
commit
55bfb4ffe8
1 changed files with 1 additions and 1 deletions
|
|
@ -8720,7 +8720,7 @@ static inline int lib_getenum(lua_State *L)
|
|||
lua_pushinteger(L, mapmusic);
|
||||
return 1;
|
||||
} else if (fastcmp(word,"server")) {
|
||||
if (!playeringame[serverplayer])
|
||||
if ((!multiplayer || !netgame) && !playeringame[serverplayer])
|
||||
return 0;
|
||||
LUA_PushUserdata(L, &players[serverplayer], META_PLAYER);
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue