Crates: update without changing Z

If crates are inside of each other, Z must remain
unchanged, else it causes a teleport (floorz).
This commit is contained in:
James R 2023-11-27 19:44:00 -08:00
parent c5968ad3ad
commit ad5baa2636

View file

@ -118,7 +118,7 @@ struct AnyBox : Graphic
void update()
{
visit([](auto box) { box->mobj_t::z++; });
visit([](auto box) { box->mobj_t::eflags &= ~MFE_ONGROUND; });
}
};