mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
Fixes cases where doors do not bolt correctly (#75882)
## About The Pull Request Some things, like door control buttons, set locked directly instead of calling lock() or unlock(). This fixes that, which should make sound effects play. Also annotates some code where we *don't* want that to happen with an explanation of why we just set locked directly. ## Why It's Good For The Game Fixes Skyrat-SS13/Skyrat-tg/issues/21510, which also applies to upstream.
This commit is contained in:
@@ -153,6 +153,7 @@
|
||||
return
|
||||
if(9 to 11)
|
||||
airlock.lights = FALSE
|
||||
// These do not use airlock.bolt() because we want to pretend it was always locked. That means no sound effects.
|
||||
airlock.locked = TRUE
|
||||
if(12 to 15)
|
||||
airlock.locked = TRUE
|
||||
@@ -201,6 +202,7 @@
|
||||
if(airlock.locked)
|
||||
log_mapping("[src] at [AREACOORD(src)] tried to bolt [airlock] but it's already locked!")
|
||||
else
|
||||
// Used instead of bolt so that we can pretend it was always locked, i.e. no sound effects on init.
|
||||
airlock.locked = TRUE
|
||||
|
||||
/obj/effect/mapping_helpers/airlock/unres
|
||||
|
||||
Reference in New Issue
Block a user