[MIRROR] Fixes wings working in space (#27727)

* Fixes wings working in space (#83239)

## About The Pull Request
Fixes #82035
Fixes #82184
Wings no longer are able to function in space if you activated them in
an environment they can function in.
This surfaced another bug where the wings would stop flying but would
leave the mob in a weird state where they weren't flying but were still
negating gravity, calling refresh_gravity fixed this, if this is a bad
way to do this let me know.

## Why It's Good For The Game
Bugfix, wings not working in space is an intentional balance
consideration.

## Changelog
🆑 Seven
fix: Wings no longer work in space if you activated them beforehand.
/🆑

* Fixes wings working in space

---------

Co-authored-by: Lufferly <40921881+Lufferly@users.noreply.github.com>
This commit is contained in:
SkyratBot
2024-05-18 01:14:57 +02:00
committed by GitHub
parent 7cb2e37809
commit aa84e65cdd
@@ -50,7 +50,7 @@
///Called on_life(). Handle flight code and check if we're still flying
/obj/item/organ/external/wings/functional/proc/handle_flight(mob/living/carbon/human/human)
if(human.movement_type & ~FLYING)
if(!(human.movement_type & FLYING))
return FALSE
if(!can_fly(human))
toggle_flight(human)
@@ -113,6 +113,8 @@
passtable_off(human, SPECIES_FLIGHT_TRAIT)
close_wings()
human.refresh_gravity()
///SPREAD OUR WINGS AND FLLLLLYYYYYY
/obj/item/organ/external/wings/functional/proc/open_wings()
var/datum/bodypart_overlay/mutant/wings/functional/overlay = bodypart_overlay