Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

[MIRROR] Holodeck Bugs are NOT ALLOWED!!!! Fixes Issue with Holodeck Projectiles #1031

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AeonSS13
Copy link

Original PR: tgstation/tgstation#56933

About The Pull Request

[issue link stripped] (nice)
the bug report is inaccurate, the holodeck puts the original projectile spawned by the energy guns stored ammo_casing into its spawned list and tracks it normally. whenever its time to delete everything in the spawned list (ie when the holodeck program changes) derez() makes everything with contents move its contents to its loc before being deleted. this is fine for guns that are spawned without being fired because the projectile is in the spawned list as well (and is thus deleted), but if the gun is fired once then the projectile held inside the guns ammo_casing isnt in the spawned list, so it gets moved onto the guns turf and doesnt get deleted. so you now have a stationary laser beam standing there runtiming whenever someone touches it. this pr makes ammo casings qdel their stored projectile in Destroy. I couldnt find anything getting broken by this including ballistics and non holodeck energy guns.

Why It's Good For The Game

holobugs must die!!!

Changelog

🆑
fix: holodeck laser beams no longer get stage fright when their gun houses stop existing unexpectedly
/:cl:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants