From fe63359a5ce78ad657eab4617d520e7e00192ca0 Mon Sep 17 00:00:00 2001 From: nemvar <47324920+nemvar@users.noreply.github.com> Date: Tue, 1 Oct 2019 08:55:20 +0200 Subject: [PATCH] Spec changing while having wings now works properly (#46787) --- code/modules/mob/living/carbon/human/species.dm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/living/carbon/human/species.dm b/code/modules/mob/living/carbon/human/species.dm index 5c8562f71aa..16573aa607a 100644 --- a/code/modules/mob/living/carbon/human/species.dm +++ b/code/modules/mob/living/carbon/human/species.dm @@ -343,8 +343,7 @@ GLOBAL_LIST_EMPTY(roundstart_races) fly.Remove(C) QDEL_NULL(fly) if(C.movement_type & FLYING) - C.setMovetype(C.movement_type & ~FLYING) - ToggleFlight(C,0) + ToggleFlight(C) if(C.dna && C.dna.species && (C.dna.features["wings"] == wings_icon)) if("wings" in C.dna.species.mutant_bodyparts) C.dna.species.mutant_bodyparts -= "wings" @@ -1814,7 +1813,7 @@ GLOBAL_LIST_EMPTY(roundstart_races) /datum/species/proc/spec_stun(mob/living/carbon/human/H,amount) if(flying_species && H.movement_type & FLYING) - ToggleFlight(H,0) + ToggleFlight(H) flyslip(H) . = stunmod * H.physiology.stun_mod * amount @@ -1865,7 +1864,7 @@ GLOBAL_LIST_EMPTY(roundstart_races) /datum/species/proc/HandleFlight(mob/living/carbon/human/H) if(H.movement_type & FLYING) if(!CanFly(H)) - ToggleFlight(H,0) + ToggleFlight(H) return FALSE return TRUE else