mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-22 02:00:11 +00:00
k_botsearch.cpp: Don't sniff spectators
This commit is contained in:
parent
dcd4f37759
commit
d94928880a
1 changed files with 2 additions and 1 deletions
|
|
@ -543,6 +543,7 @@ static BlockItReturn_t K_FindObjectsForNudging(mobj_t *thing)
|
|||
break;
|
||||
case MT_PLAYER:
|
||||
if (thing->player
|
||||
&& !thing->player->spectator
|
||||
&& !thing->player->hyudorotimer
|
||||
&& !g_nudgeSearch.botmo->player->hyudorotimer)
|
||||
{
|
||||
|
|
@ -902,7 +903,7 @@ static BlockItReturn_t K_FindPlayersToBully(mobj_t *thing)
|
|||
return BMIT_CONTINUE;
|
||||
}
|
||||
|
||||
if (!thing->player)
|
||||
if (!thing->player || thing->player->spectator)
|
||||
{
|
||||
return BMIT_CONTINUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue