mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
Simplify sliding objects for now
This commit is contained in:
parent
9af664d117
commit
b66433478c
2 changed files with 1 additions and 12 deletions
|
@ -349,7 +349,6 @@ xx(GenericFreezeDeath)
|
|||
xx(GenericCrush)
|
||||
xx(DieFromSpawn)
|
||||
xx(Slam)
|
||||
xx(Slide)
|
||||
|
||||
// Bounce state names
|
||||
xx(Bounce)
|
||||
|
|
|
@ -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) &&
|
||||
|
|
Loading…
Reference in a new issue