Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes crates being pitch black on ASRS animation #7028

Merged
merged 2 commits into from
Aug 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions code/modules/shuttles/shuttle_supply.dm
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@
for(var/turf/T in away_area)
elevator_animation.vis_contents += T

for(var/turf/vis_turf in elevator_animation.vis_contents)
for(var/atom/movable/vis_content in vis_turf.contents)
vis_content.blocks_emissive = FALSE
vis_content.update_emissive_block()

//If we are at the away_area then we are just pretending to move, otherwise actually do the move
if (origin != away_area)
playsound(locate(Elevator_x,Elevator_y,Elevator_z), 'sound/machines/asrs_lowering.ogg', 50, 0)
Expand Down Expand Up @@ -126,6 +131,12 @@

moving_status = SHUTTLE_IDLE
stop_gears()

for(var/turf/vis_turf in elevator_animation.vis_contents)
for(var/atom/movable/vis_content in vis_turf.contents)
vis_content.blocks_emissive = initial(vis_content.blocks_emissive)
vis_content.update_emissive_block()

elevator_animation.vis_contents.Cut()

if (!at_station()) //at centcom
Expand Down
Loading