mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Fix consoleplayer returning the server player during joining phase
This commit is contained in:
parent
262a5c9b3a
commit
c5f8454093
1 changed files with 1 additions and 1 deletions
|
|
@ -333,7 +333,7 @@ int LUA_PushGlobals(lua_State *L, const char *word)
|
||||||
return 1;
|
return 1;
|
||||||
// local player variables, by popular request
|
// local player variables, by popular request
|
||||||
} else if (fastcmp(word,"consoleplayer")) { // player controlling console (aka local player 1)
|
} else if (fastcmp(word,"consoleplayer")) { // player controlling console (aka local player 1)
|
||||||
if (consoleplayer < 0 || !playeringame[consoleplayer])
|
if (!addedtogame || consoleplayer < 0 || !playeringame[consoleplayer])
|
||||||
return 0;
|
return 0;
|
||||||
LUA_PushUserdata(L, &players[consoleplayer], META_PLAYER);
|
LUA_PushUserdata(L, &players[consoleplayer], META_PLAYER);
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue