Unfucks smallscreen, removes my stupidity (#51266)

* slightly less SHIT FUCK SHIT FUCK

* Turns out we do need this

* YaYeet

* That should do it
This commit is contained in:
LemonInTheDark
2020-05-25 23:38:10 -03:00
committed by GitHub
parent fdc272de18
commit a08f2113a4
7 changed files with 10 additions and 12 deletions
+1 -6
View File
@@ -890,12 +890,7 @@ GLOBAL_LIST_EMPTY(external_rsc_urls)
. = ..()
/client/proc/rescale_view(change, min, max)
var/viewscale = getviewsize(view)
var/x = viewscale[1]
var/y = viewscale[2]
x = clamp(x+change, min, max)
y = clamp(y+change, min,max)
view_size.setDefault("[x]x[y]")
view_size.setTo(clamp(change, min, max), clamp(change, min, max))
/client/proc/update_movement_keys(datum/preferences/direct_prefs)
var/datum/preferences/D = prefs || direct_prefs
@@ -290,6 +290,8 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
WRITE_FILE(S["ambientocclusion"], ambientocclusion)
WRITE_FILE(S["auto_fit_viewport"], auto_fit_viewport)
WRITE_FILE(S["widescreenpref"], widescreenpref)
WRITE_FILE(S["pixel_size"], pixel_size)
WRITE_FILE(S["scaling_method"], scaling_method)
WRITE_FILE(S["menuoptions"], menuoptions)
WRITE_FILE(S["enable_tips"], enable_tips)
WRITE_FILE(S["tip_delay"], tip_delay)