- check point pushers/pullers by inheritance, not absiolute match

This commit is contained in:
Christoph Oelckers 2022-06-13 00:08:34 +02:00
commit be2fe0f304
2 changed files with 5 additions and 5 deletions

View file

@ -232,7 +232,7 @@ void DPusher::Tick ()
if ((speed > 0) && (P_CheckSight (thing, m_Source, SF_IGNOREVISIBILITY)))
{
DAngle pushangle = pos.Angle();
if (m_Source->GetClass()->TypeName == NAME_PointPuller) pushangle += 180;
if (m_Source->IsKindOf(NAME_PointPuller)) pushangle += 180;
thing->Thrust(pushangle, speed);
}
}