Port bot unlock permit stuff
This commit is contained in:
parent
72e5148ce6
commit
fe330fc283
1 changed files with 2 additions and 9 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue