diff --git a/code/datums/view.dm b/code/datums/view.dm index 41757b74d38..d4ae0c20ab1 100644 --- a/code/datums/view.dm +++ b/code/datums/view.dm @@ -80,8 +80,6 @@ /datum/viewData/proc/apply() chief.change_view(getView()) safeApplyFormat() - if(chief.prefs.auto_fit_viewport) - chief.fit_viewport() /datum/viewData/proc/supress() is_suppressed = TRUE diff --git a/code/game/machinery/computer/camera_advanced.dm b/code/game/machinery/computer/camera_advanced.dm index b558879fe7c..b7ccdc94373 100644 --- a/code/game/machinery/computer/camera_advanced.dm +++ b/code/game/machinery/computer/camera_advanced.dm @@ -11,7 +11,8 @@ var/datum/action/innate/camera_off/off_action = new var/datum/action/innate/camera_jump/jump_action = new var/list/actions = list() - + ///Should we supress any view changes? + var/should_supress_view_changes = TRUE light_color = LIGHT_COLOR_RED /obj/machinery/computer/camera_advanced/Initialize() @@ -162,7 +163,8 @@ user.remote_control = eyeobj user.reset_perspective(eyeobj) eyeobj.setLoc(eyeobj.loc) - user.client.view_size.supress() + if(should_supress_view_changes ) + user.client.view_size.supress() /mob/camera/aiEye/remote name = "Inactive Camera Eye" diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm index 5456bbf0e86..1ef9577ac7f 100644 --- a/code/modules/client/client_procs.dm +++ b/code/modules/client/client_procs.dm @@ -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 diff --git a/code/modules/client/preferences_savefile.dm b/code/modules/client/preferences_savefile.dm index eee36cdc7e6..0bb5d919a00 100644 --- a/code/modules/client/preferences_savefile.dm +++ b/code/modules/client/preferences_savefile.dm @@ -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) diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index fa853f16024..2d07aeee832 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -513,7 +513,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp set hidden = TRUE var/max_view = client.prefs.unlock_content ? GHOST_MAX_VIEW_RANGE_MEMBER : GHOST_MAX_VIEW_RANGE_DEFAULT if(input) - client.rescale_view(input, 15, (max_view*2)+1) + client.rescale_view(input, 0, ((max_view*2)+1) - 15) /mob/dead/observer/verb/boo() set category = "Ghost" diff --git a/code/modules/mob/login.dm b/code/modules/mob/login.dm index 89f13d19a7f..db662c64b5e 100644 --- a/code/modules/mob/login.dm +++ b/code/modules/mob/login.dm @@ -74,7 +74,7 @@ update_client_colour() update_mouse_pointer() if(client) - client.change_view(CONFIG_GET(string/default_view)) // Resets the client.view in case it was changed + client.change_view(getScreenSize(client.prefs.widescreenpref)) // Resets the client.view in case it was changed. if(client.player_details.player_actions.len) for(var/datum/action/A in client.player_details.player_actions) diff --git a/code/modules/shuttle/navigation_computer.dm b/code/modules/shuttle/navigation_computer.dm index 98c729b5d1a..459c2ea8011 100644 --- a/code/modules/shuttle/navigation_computer.dm +++ b/code/modules/shuttle/navigation_computer.dm @@ -2,6 +2,7 @@ name = "navigation computer" desc = "Used to designate a precise transit location for a spacecraft." jump_action = null + should_supress_view_changes = FALSE var/datum/action/innate/shuttledocker_rotate/rotate_action = new var/datum/action/innate/shuttledocker_place/place_action = new var/shuttleId = ""