Port bot unlock permit stuff

This commit is contained in:
NepDisk 2025-12-11 21:47:07 -05:00
parent 72e5148ce6
commit fe330fc283

View file

@ -147,7 +147,6 @@ void K_SetNameForBot(UINT8 newplayernum, const char *realname)
--------------------------------------------------*/
void K_SetBot(UINT8 newplayernum, UINT16 skinnum, UINT8 difficulty, botStyle_e style)
{
INT32 i;
CONS_Debug(DBG_NETPLAY, "addbot: %d\n", newplayernum);
G_AddPlayer(newplayernum, newplayernum);
@ -155,14 +154,8 @@ void K_SetBot(UINT8 newplayernum, UINT16 skinnum, UINT8 difficulty, botStyle_e s
if (newplayernum+1 > doomcom->numslots)
doomcom->numslots = (INT16)(newplayernum+1);
// todo find a way to have all auto unlocked for dedicated
if (playeringame[0])
{
for (i = 0; i < MAXAVAILABILITY; i++)
{
players[newplayernum].availabilities[i] = players[0].availabilities[i];
}
}
// this will permit unlocks
memcpy(&players[newplayernum].availabilities, R_GetSkinAvailabilities(), MAXAVAILABILITY*sizeof(UINT8));
playernode[newplayernum] = servernode;