diff --git a/src/k_bot.cpp b/src/k_bot.cpp index 8b30f6f15..9502792b6 100644 --- a/src/k_bot.cpp +++ b/src/k_bot.cpp @@ -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;