Merge pull request #33881 from AnturK/walls-have-eyes
Makes reset_perspective handle turf as eye
This commit is contained in:
@@ -21,8 +21,8 @@ SUBSYSTEM_DEF(parallax)
|
||||
return
|
||||
continue
|
||||
var/atom/movable/A = C.eye
|
||||
if(!A)
|
||||
return
|
||||
if(!istype(A))
|
||||
continue
|
||||
for (A; isloc(A.loc) && !isturf(A.loc); A = A.loc);
|
||||
|
||||
if(A != C.movingmob)
|
||||
|
||||
@@ -260,13 +260,13 @@
|
||||
client.perspective = EYE_PERSPECTIVE
|
||||
client.eye = A
|
||||
else
|
||||
if(isturf(loc))
|
||||
if(isturf(loc) && (!A || loc == A))
|
||||
client.eye = client.mob
|
||||
client.perspective = MOB_PERSPECTIVE
|
||||
else
|
||||
client.perspective = EYE_PERSPECTIVE
|
||||
client.eye = loc
|
||||
return 1
|
||||
client.eye = A
|
||||
return 1
|
||||
|
||||
/mob/living/reset_perspective(atom/A)
|
||||
if(..())
|
||||
|
||||
Reference in New Issue
Block a user