mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
Fix meteor announce runtime (#91719)
## About The Pull Request `if(GLOB.meteor_list)` will always pass because it's always a list, it should be checking for length. At least from what I can tell.
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
spawn_meteor(GLOB.meteors_stray)
|
||||
|
||||
/datum/round_event/stray_meteor/announce(fake)
|
||||
if(GLOB.meteor_list)
|
||||
if(length(GLOB.meteor_list))
|
||||
var/obj/effect/meteor/detected_meteor = pick(GLOB.meteor_list) //If we accidentally pick a meteor not spawned by the event, we're still technically not wrong
|
||||
var/sensor_name = detected_meteor.signature
|
||||
priority_announce("Our [sensor_name] sensors have detected an incoming signature approaching [GLOB.station_name]. Please brace for impact.", "Meteor Alert")
|
||||
|
||||
Reference in New Issue
Block a user