mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-02 14:32:22 +00:00
Update references to player->bot
This commit is contained in:
parent
2e528216ac
commit
2016caa70b
1 changed files with 6 additions and 7 deletions
11
src/p_mobj.c
11
src/p_mobj.c
|
@ -1839,10 +1839,9 @@ void P_XYMovement(mobj_t *mo)
|
|||
// blocked move
|
||||
moved = false;
|
||||
|
||||
if (player) {
|
||||
if (player->bot && player->bot != 3)
|
||||
//!!!
|
||||
if (player)
|
||||
B_MoveBlocked(player);
|
||||
}
|
||||
|
||||
if (LUAh_MobjMoveBlocked(mo))
|
||||
{
|
||||
|
@ -4135,7 +4134,7 @@ boolean P_BossTargetPlayer(mobj_t *actor, boolean closest)
|
|||
|
||||
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
|
||||
|
||||
if (!player->mo || P_MobjWasRemoved(player->mo))
|
||||
|
@ -4176,7 +4175,7 @@ boolean P_SupermanLook4Players(mobj_t *actor)
|
|||
if (players[c].pflags & PF_INVIS)
|
||||
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;
|
||||
|
||||
if (players[c].mo->health <= 0)
|
||||
|
@ -7307,7 +7306,7 @@ static void P_RosySceneryThink(mobj_t *mobj)
|
|||
continue;
|
||||
if (!players[i].mo)
|
||||
continue;
|
||||
if (players[i].bot)
|
||||
if (players[i].bot == BOT_2PAI || players[i].bot == BOT_2PHUMAN)
|
||||
continue;
|
||||
if (!players[i].mo->health)
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue