Update references to player->bot

This commit is contained in:
Shane Ellis 2021-01-23 10:16:27 -05:00
parent 2e528216ac
commit 2016caa70b

View file

@ -1839,10 +1839,9 @@ void P_XYMovement(mobj_t *mo)
// blocked move // blocked move
moved = false; moved = false;
if (player) { //!!!
if (player->bot && player->bot != 3) if (player)
B_MoveBlocked(player); B_MoveBlocked(player);
}
if (LUAh_MobjMoveBlocked(mo)) if (LUAh_MobjMoveBlocked(mo))
{ {
@ -4135,7 +4134,7 @@ boolean P_BossTargetPlayer(mobj_t *actor, boolean closest)
player = &players[actor->lastlook]; player = &players[actor->lastlook];
if (player->pflags & PF_INVIS || (player->bot && player->bot != 3) || player->spectator) if (player->pflags & PF_INVIS || player->bot == BOT_2PAI || player->bot == BOT_2PHUMAN || player->spectator)
continue; // ignore notarget continue; // ignore notarget
if (!player->mo || P_MobjWasRemoved(player->mo)) if (!player->mo || P_MobjWasRemoved(player->mo))
@ -4176,7 +4175,7 @@ boolean P_SupermanLook4Players(mobj_t *actor)
if (players[c].pflags & PF_INVIS) if (players[c].pflags & PF_INVIS)
continue; // ignore notarget continue; // ignore notarget
if (!players[c].mo || players[c].bot) if (!players[c].mo || players[c].bot == BOT_2PAI || players[c].bot == BOT_2PHUMAN)
continue; continue;
if (players[c].mo->health <= 0) if (players[c].mo->health <= 0)
@ -7307,7 +7306,7 @@ static void P_RosySceneryThink(mobj_t *mobj)
continue; continue;
if (!players[i].mo) if (!players[i].mo)
continue; continue;
if (players[i].bot) if (players[i].bot == BOT_2PAI || players[i].bot == BOT_2PHUMAN)
continue; continue;
if (!players[i].mo->health) if (!players[i].mo->health)
continue; continue;