add view range respects widescreen (#33581)

It will simply increment the x and y independently

This prevents a runtime of trying to add a number to a string
This commit is contained in:
oranges
2017-12-16 23:09:13 -05:00
committed by ShizCalev
parent f79bf1fca4
commit d25ddc86f8
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -670,6 +670,13 @@ GLOBAL_LIST(external_rsc_urls)
return TRUE
. = ..()
/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)
change_view("[x]x[y]")
/client/proc/change_view(new_size)
if (isnull(new_size))