Fixes vore belly icons not updating when content transfered from icon belly to iconless belly (#6731)

This commit is contained in:
Verkister
2023-08-06 02:09:52 +03:00
committed by GitHub
parent eeeea1468a
commit 8fbac4b057
3 changed files with 19 additions and 3 deletions

View File

@@ -1,9 +1,15 @@
/mob/living/carbon/human/update_fullness()
/mob/living/carbon/human/update_fullness(var/returning = FALSE)
if(!returning)
if(updating_fullness)
return
updating_fullness = TRUE
spawn(2)
updating_fullness = FALSE
var/previous_stomach_fullness = vore_fullness_ex["stomach"]
var/previous_taur_fullness = vore_fullness_ex["taur belly"]
//update_vore_tail_sprite()
//update_vore_belly_sprite()
var/list/new_fullness = ..()
var/list/new_fullness = ..(TRUE)
. = new_fullness
for(var/datum/category_group/underwear/undergarment_class in global_underwear.categories)
if(!new_fullness[undergarment_class.name])