- moved bglobal into FLevelLocals
This is still all static data, only the location has changed, but none of the access.
This commit is contained in:
parent
8bbdee5c28
commit
e30f116faf
20 changed files with 72 additions and 74 deletions
|
|
@ -2333,7 +2333,7 @@ bool P_TryMove(AActor *thing, const DVector2 &pos,
|
|||
if (thing->player && thing->player->Bot != NULL && thing->flags & MF_SHOOTABLE)
|
||||
{
|
||||
if (tm.sector != thing->Sector
|
||||
&& bglobal.IsDangerous(tm.sector))
|
||||
&& thing->Level->BotInfo.IsDangerous(tm.sector))
|
||||
{
|
||||
thing->player->Bot->prev = thing->player->Bot->dest;
|
||||
thing->player->Bot->dest = nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue