- handled most level references in actorinlines.h and p_mobj.cpp.

This commit is contained in:
Christoph Oelckers 2019-01-27 16:08:22 +01:00
commit 73696e2781
6 changed files with 76 additions and 69 deletions

View file

@ -965,8 +965,8 @@ DAngle P_BulletSlope (AActor *mo, FTranslatedLineTarget *pLineTarget, int aimfla
an = mo->Angles.Yaw + angdiff[i];
pitch = P_AimLineAttack (mo, an, 16.*64, pLineTarget, 0., aimflags);
if (mo->player != NULL &&
level.IsFreelookAllowed() &&
if (mo->player != nullptr &&
mo->Level->IsFreelookAllowed() &&
mo->player->userinfo.GetAimDist() <= 0.5)
{
break;