mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-12 23:54:24 +01:00
Steals and fixes a memory leak fix from the freeloaders
-Up-ports a memory leak fix related to preview mannequins. -Also fixes the forementioned fix breaking fuzzy/sharp previews on setup. -Also makes the fuzzy/sharp toggle button update the char setup preview.
This commit is contained in:
@@ -45,7 +45,6 @@
|
||||
character.weight_gain = pref.weight_gain
|
||||
character.weight_loss = pref.weight_loss
|
||||
character.fuzzy = pref.fuzzy
|
||||
character.appearance_flags -= pref.fuzzy*PIXEL_SCALE
|
||||
character.resize(pref.size_multiplier, animate = FALSE)
|
||||
|
||||
/datum/category_item/player_setup_item/vore/size/content(var/mob/user)
|
||||
@@ -70,7 +69,7 @@
|
||||
|
||||
else if(href_list["toggle_fuzzy"])
|
||||
pref.fuzzy = pref.fuzzy ? 0 : 1;
|
||||
return TOPIC_REFRESH
|
||||
return TOPIC_REFRESH_UPDATE_PREVIEW
|
||||
|
||||
else if(href_list["weight"])
|
||||
var/new_weight = input(user, "Choose your character's relative body weight.\n\
|
||||
|
||||
@@ -141,6 +141,9 @@ var/global/list/damage_icon_parts = list() //see UpdateDamageIcon()
|
||||
var/desired_scale_y = size_multiplier * icon_scale_y
|
||||
desired_scale_x *= species.icon_scale_x
|
||||
desired_scale_y *= species.icon_scale_y
|
||||
appearance_flags |= PIXEL_SCALE
|
||||
if(fuzzy)
|
||||
appearance_flags &= ~PIXEL_SCALE
|
||||
//VOREStation Edit End
|
||||
|
||||
// Regular stuff again.
|
||||
|
||||
Reference in New Issue
Block a user