Operating System: WindowsXP
Detailed Problem Description:
This is extremely weird, nothing in my code is there to explain this..
Code Snippet to Reproduce Problem:
obj/Infection
icon='Map Files.dmi'
icon_state="Infection"
layer=1
New()
..()
var/R=rand(1,255)
var/G=rand(1,255)
var/B=rand(1,255)
src.icon+=rgb(R,G,B)
src.layer=2
walk_rand(src,10)
spawn()src.Animation()
spawn(1)src.Spawn_Infection()
proc/Animation()
sleep(5)
flick("Infection Cease",src)
src.icon_state="Infection Invisible"
sleep(rand(10,90))
flick("Infection Appear",src)
src.icon_state="Infection"
sleep(rand(5,50))
Animation()
proc/Spawn_Infection()
sleep(rand(1,10000))
var/obj/Infection/I=new(type)
I.loc=locate(src.x,src.y,src.z)
It appears fine for the first few "infections" that are spawned, and then this happens.
(See top left corner, the little squiggley thing, that's how it should look, but then it randomly generates an icon_state, which I find very weird)
(Click to expand)
Does the problem occur:
Every time? Or how often? Only seen it on Infection