From f35d207c7f15a4935ae54ce10a079c7defd52ea2 Mon Sep 17 00:00:00 2001 From: toaster Date: Mon, 18 Aug 2025 17:44:14 +0100 Subject: [PATCH] R_ThingVisible: Add missing entries/cleanup for sanity - MT_EXPLODE is spawned by MT_RANDOMITEM on certain types of pop-in - MT_DUELBOMB and MT_MINERADIUS are both Duel hazard visuals that were missing - MT_FOLLOWER is added to match MT_PLAYER - Add comments to make clear why/how we're dividing this stuff --- src/r_things.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/r_things.cpp b/src/r_things.cpp index 00b8aca5c..9f7a5a147 100644 --- a/src/r_things.cpp +++ b/src/r_things.cpp @@ -3785,21 +3785,31 @@ boolean R_ThingVisible (mobj_t *thing) { switch (thing->type) { + // Players + case MT_PLAYER: + case MT_FOLLOWER: + // Individual pickups case MT_RING: case MT_FLINGRING: case MT_BLUESPHERE: + case MT_SPRAYCAN: + // Item Boxes and Capsules + case MT_EXPLODE: case MT_RANDOMITEM: case MT_SPHEREBOX: case MT_ITEMCAPSULE: case MT_ITEMCAPSULE_PART: case MT_OVERLAY: // mostly capsule numbers :))) + // Prison Eggs case MT_BATTLECAPSULE: case MT_BATTLECAPSULE_PIECE: - case MT_SPRAYCAN: - case MT_PLAYER: + // Duel hazards + case MT_DUELBOMB: case MT_LANDMINE: case MT_SSMINE: case MT_SSMINE_SHIELD: + case MT_MINERADIUS: + // Checkpoints case MT_CHECKPOINT_END: case MT_SIGNSPARKLE: case MT_THOK: // checkpoint parts