From ad5baa2636c727c742fd6d894a37c83fb3a9a751 Mon Sep 17 00:00:00 2001 From: James R Date: Mon, 27 Nov 2023 19:44:00 -0800 Subject: [PATCH] Crates: update without changing Z If crates are inside of each other, Z must remain unchanged, else it causes a teleport (floorz). --- src/objects/crate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/objects/crate.cpp b/src/objects/crate.cpp index 7405b0b80..dafa06b72 100644 --- a/src/objects/crate.cpp +++ b/src/objects/crate.cpp @@ -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; }); } };