Simplify sliding objects for now

This commit is contained in:
UnizoneDev 2022-11-11 15:24:49 -06:00 committed by Christoph Oelckers
parent 9af664d117
commit b66433478c
2 changed files with 1 additions and 12 deletions

View file

@ -349,7 +349,6 @@ xx(GenericFreezeDeath)
xx(GenericCrush)
xx(DieFromSpawn)
xx(Slam)
xx(Slide)
// Bounce state names
xx(Bounce)

View file

@ -1684,19 +1684,9 @@ bool PIT_CheckThing(FMultiBlockThingsIterator &it, FMultiBlockThingsIterator::Ch
{ // Push thing
if (thing->lastpush != tm.PushTime)
{
thing->PlayPushSound();
thing->Vel += tm.thing->Vel.XY() * thing->pushfactor;
thing->lastpush = tm.PushTime;
FState* push = thing->FindState(NAME_Slide);
if (push != NULL)
{
thing->SetState(push);
thing->PlayPushSound();
}
else
{
thing->SetIdle();
}
}
}
solid = (thing->flags & MF_SOLID) &&