Fixes for Bluespace Jumpsuit

Oddly sets your size to null, no idea where it happens, but have some safety checks.
This commit is contained in:
Arokha Sieyes
2017-06-10 18:09:44 -04:00
parent 389aba627c
commit 118d035c4e
2 changed files with 34 additions and 21 deletions
+1
View File
@@ -61,6 +61,7 @@ var/const/RESIZE_A_SMALLTINY = (RESIZE_SMALL + RESIZE_TINY) / 2
/mob/living/proc/resize(var/new_size, var/animate = TRUE)
if(size_multiplier == new_size)
return 1
ASSERT(new_size >= RESIZE_TINY && new_size <= RESIZE_HUGE)
if(animate)
var/matrix/resize = matrix() // Defines the matrix to change the player's size
resize.Scale(new_size) //Change the size of the matrix