Merge branch 'botdonttakezero' into 'next'

Prevent bots from taking slot 0 with lua. (electric boogaloo)

See merge request STJr/SRB2!2482
This commit is contained in:
sphere 2024-06-24 19:49:43 +00:00
commit 7acdd50e30

View file

@ -3878,7 +3878,7 @@ static int lib_gAddPlayer(lua_State *L)
player_t *newplayer; player_t *newplayer;
SINT8 skinnum = 0, bot; SINT8 skinnum = 0, bot;
for (i = 0; i < MAXPLAYERS; i++) for (i = 1; i < MAXPLAYERS; i++)
{ {
if (!playeringame[i]) if (!playeringame[i])
break; break;