- fixed fast crushers going out of sync if something is being crushed by them.

This commit is contained in:
Christoph Oelckers 2022-06-02 16:48:07 +02:00
parent 05c846c4eb
commit 15a5554f8d

View file

@ -319,7 +319,7 @@ EMoveResult sector_t::MoveCeiling(double speed, double dest, int crush, int dire
ceilingplane.setD(dest); ceilingplane.setD(dest);
flag = P_ChangeSector (this, crush, move, 1, false); flag = P_ChangeSector (this, crush, move, 1, false);
if (flag) if (flag && !(crush >= 0 && !hexencrush && movedest == dest))
{ {
ceilingplane.setD(lastpos); ceilingplane.setD(lastpos);
P_ChangeSector (this, crush, -move, 1, true); P_ChangeSector (this, crush, -move, 1, true);