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(GenericCrush)
xx(DieFromSpawn) xx(DieFromSpawn)
xx(Slam) xx(Slam)
xx(Slide)
// Bounce state names // Bounce state names
xx(Bounce) xx(Bounce)

View file

@ -1684,19 +1684,9 @@ bool PIT_CheckThing(FMultiBlockThingsIterator &it, FMultiBlockThingsIterator::Ch
{ // Push thing { // Push thing
if (thing->lastpush != tm.PushTime) if (thing->lastpush != tm.PushTime)
{ {
thing->PlayPushSound();
thing->Vel += tm.thing->Vel.XY() * thing->pushfactor; thing->Vel += tm.thing->Vel.XY() * thing->pushfactor;
thing->lastpush = tm.PushTime; 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) && solid = (thing->flags & MF_SOLID) &&