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
This commit is contained in:
toaster 2025-08-18 17:44:14 +01:00
parent a4ef43442f
commit f35d207c7f

View file

@ -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