ID:2387796
 
Code:
            if(sense_tab_on)
if (!afk)
var/Scouter
if(!Toggled_Sense)
for(var/obj/items/Scanner/A in src) if(A.suffix)
Scouter=1
var/mob/Center
if(usr.S) Center=S
else Center=src
if(src)
if(!afk)
if(ScanArea == 2)
var/I=1
winset(src, "ScanArea.GridSA", "cells=0x0")
src << output("Location:","ScanArea.GridSA:1,[I]")
src << output("([E.x],[E.y],[E.z])","ScanArea.GridSA:2,[I]")
for(var/mob/B in Mob_Range_Scanner(Center,round(A.Range)))if(!B.afk)
var/Scan=B.BP
if(Scan>A.Scan) Scan="!?"
else Scan=Commas(Scan)
if(isnull(B)||isnull(B.client)) continue
if(B.GodKi&&B.AllowGodSense) Scan="???"
I += 1
src << output(B,"ScanArea.GridSA:1,[I]")
src << output("[Scan], [dir2text(get_dir(Center.loc,B.loc))]","ScanArea.GridSA:2,[I]")
sleep(10)


Problem description:

https://gyazo.com/2e63f52e56f87d5639c27a4fa2a3095a

Essentially, the icon is refreshing on the grid, causing the grid to stretch and then shrink. This creates a poor visual for the player. Anyone know how to fix this?

Thanks for the help!

P.S. I added the sleep at the end just to make it less frequent as a bandaid of sorts

If anyone else runs into this issue, this is how I had to fix it.

            if(sense_tab_on)
if (!afk)
var/Scouter
if(!Toggled_Sense)
for(var/obj/items/Scanner/A in src) if(A.suffix)
Scouter=1
var/mob/Center
if(usr.S) Center=S
else Center=src
if(src)
if(!afk)
if(ScanArea == 2)
var/I=1
src << output("Location:","ScanArea.GridSA:1,[I]")
src << output("([E.x],[E.y],[E.z])","ScanArea.GridSA:2,[I]")
for(var/mob/B in Mob_Range_Scanner(Center,round(A.Range)))if(!B.afk)
var/Scan=B.BP
if(Scan>A.Scan) Scan="!?"
else Scan=Commas(Scan)
if(isnull(B)||isnull(B.client)) continue
if(B.GodKi&&B.AllowGodSense) Scan="???"
I += 1
src << output(B,"ScanArea.GridSA:1,[I]")
src << output("[Scan], [dir2text(get_dir(Center.loc,B.loc))]","ScanArea.GridSA:2,[I]")
winset(src, "ScanArea.GridSA", "cells=2x[I]")