still doesn't work
but use K_BotDefaultSpectator more
This commit is contained in:
parent
5fd1955845
commit
c70c22efe6
3 changed files with 9 additions and 3 deletions
|
|
@ -54,6 +54,7 @@
|
|||
#include "k_objects.h"
|
||||
#include "k_items.h"
|
||||
#include "k_waypoint.h"
|
||||
#include "k_grandprix.h"
|
||||
|
||||
// BlanKart
|
||||
#include "blan/b_soc.h"
|
||||
|
|
@ -12416,10 +12417,11 @@ void P_SpawnPlayer(INT32 playernum)
|
|||
}
|
||||
else if (p->bot)
|
||||
{
|
||||
if (itembreaker)
|
||||
if (K_BotDefaultSpectator())
|
||||
{
|
||||
// Bots should avoid
|
||||
P_SetPlayerSpectator(playernum);
|
||||
p->spectator = true;
|
||||
p->pflags &= ~PF_WANTSTOJOIN;
|
||||
}
|
||||
else if (p->spectator)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9231,7 +9231,7 @@ void P_PostLoadLevel(void)
|
|||
K_InitGrandPrixBots();
|
||||
grandprixinfo.initalize = false;
|
||||
}
|
||||
else if (grandprixinfo.wonround == true)
|
||||
else// if (grandprixinfo.wonround == true)
|
||||
{
|
||||
K_UpdateGrandPrixBots();
|
||||
grandprixinfo.wonround = false;
|
||||
|
|
|
|||
|
|
@ -2681,6 +2681,10 @@ static void P_DeathThink(player_t *player)
|
|||
playerGone = true;
|
||||
}
|
||||
}
|
||||
else if (player->bot && K_BotDefaultSpectator())
|
||||
{
|
||||
playerGone = true;
|
||||
}
|
||||
|
||||
if (playerGone == false)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue