Ash storms are no longer audible on mining/labor shuttles when in transit or docked on station (#17905)

* Change get_weather to use type instead of instance

* Stop storm audio on shuttle when docked at station

* Realize that the labor camp shuttle exists

* Fix a comment

* Apply suggestions from code review

Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>

Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
This commit is contained in:
Fridge Burns
2022-06-06 21:50:25 +01:00
committed by GitHub
co-authored by AffectedArc07
parent f33d1da673
commit ca0f0ed9e8
3 changed files with 57 additions and 17 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ SUBSYSTEM_DEF(weather)
var/datum/weather/A
for(var/V in processing)
var/datum/weather/W = V
if((z in W.impacted_z_levels) && W.area_type == active_area.type)
if((z in W.impacted_z_levels) && W.area_type == active_area)
A = W
break
return A