mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
HACK: Fixes 516 small character creator bug by shaking screen_loc. (#89933)
## About The Pull Request So basically there's some byond bug that has made character previews small and things like cameras offset for the longest time when you open them. Basically when ``/atom/movable/screen/proc/set_position`` is called and it has an ``assigned_map``, sleep, add three to the x and y offset, sleep, then reset it. Sorry @Mothblocks but your original code to update the character after a second doesn't seem to work anymore.  ## Why It's Good For The Game This is not good for the game ## Changelog 🆑 fix: Character creator preview being miniature /🆑
This commit is contained in:
@@ -151,13 +151,6 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
ui.set_autoupdate(FALSE)
|
||||
ui.open()
|
||||
|
||||
// HACK: Without this the character starts out really tiny because of some BYOND bug.
|
||||
// You can fix it by changing a preference, so let's just forcably update the body to emulate this.
|
||||
// Lemon from the future: this issue appears to replicate if the byond map (what we're relaying here)
|
||||
// Is shown while the client's mouse is on the screen. As soon as their mouse enters the main map, it's properly scaled
|
||||
// I hate this place
|
||||
addtimer(CALLBACK(character_preview_view, TYPE_PROC_REF(/atom/movable/screen/map_view/char_preview, update_body)), 1 SECONDS)
|
||||
|
||||
/datum/preferences/ui_state(mob/user)
|
||||
return GLOB.always_state
|
||||
|
||||
|
||||
Reference in New Issue
Block a user