Skip to content

fixes flaky test fails: radio headset init with wearer value of null#12275

Open
kitchenenthusiast wants to merge 1 commit into
cmss13-devs:masterfrom
kitchenenthusiast:flaky_test_fixes_radio
Open

fixes flaky test fails: radio headset init with wearer value of null#12275
kitchenenthusiast wants to merge 1 commit into
cmss13-devs:masterfrom
kitchenenthusiast:flaky_test_fixes_radio

Conversation

@kitchenenthusiast
Copy link
Copy Markdown
Contributor

About the pull request

(hopefully) fixes the flaky test fails (probably on map init?) for when like, a body spawns but doesn't fully spawn before the minimap subsystem tries to call an update for their minimap icon before the body/wearer is fully init'd. i just made it so no null value returned.

Fixes #12250
Fixes #12237
Fixes #12206
Fixes #12058

silence, bot.

Explain why it's good for the game

ELIMINATE runtimes. this was hitting often-ish enough that i thought it was worth doing since clearly this init pattern happens...kind of often. reduces runtime issues by standardizing for whenever anyone edits roles, adds roles, or adds new maps (with prop corpses).

i don't know what the exact server times translate to with regards to actual round times, so my best guess is what i said above, it's a null value on partially-appended inventory items when prop bodies are spawning in on map load. in the event this intersects with survs/shipside staff that spawn with headsets, the next signal update (movement, taking damage) would pull a minimap icon update anyways, so i don't think it will cause issues there!

Testing Photographs and Procedure

very hard to test since flaky. server starts okay and minimap icons for ded bodies appear :)

Changelog

🆑
fix: Fixes runtime during map initialization caused by minimap subsystem calling icon updates before mobs are fully initialized
/:cl:

@github-project-automation github-project-automation Bot moved this to Awaiting Review in Review Backlog May 22, 2026
@cmss13-ci cmss13-ci Bot added Fix Fix one bug, make ten more size/XS Denotes a PR that changes 0-19 lines, ignoring generated files. labels May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment