Navigation Menu

Skip to content

Commit

Permalink
Simplify sliding objects for now
Browse files Browse the repository at this point in the history
  • Loading branch information
UnizoneDev authored and coelckers committed Nov 13, 2022
1 parent 9af664d commit b664334
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
1 change: 0 additions & 1 deletion src/namedef_custom.h
Expand Up @@ -349,7 +349,6 @@ xx(GenericFreezeDeath)
xx(GenericCrush)
xx(DieFromSpawn)
xx(Slam)
xx(Slide)

// Bounce state names
xx(Bounce)
Expand Down
12 changes: 1 addition & 11 deletions src/playsim/p_map.cpp
Expand Up @@ -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) &&
Expand Down

0 comments on commit b664334

Please sign in to comment.