Numbered Steps to Reproduce Problem: Press the verb "Bug" a couple of times and you'll notice what I am talking about
Code Snippet (if applicable) to Reproduce Problem:
mob/verb/Bug()
var/image/I = locate("Bug")
if(I)
for(var/obj/O in I.vis_contents)
I.vis_contents -= O
else
I = image(null, src)
I.tag = "Bug"
src<<I
var {B = 10; eX; eY}
while(B)
var/obj/O = new/obj/Object {pixel_x = -120; pixel_y = 100; alpha = 150} ()
O.pixel_x += eX
O.pixel_y += eY
O.color = rgb(rand(0, 255), rand(0, 255), rand(0, 255))
I.vis_contents += O
eX += 50
if(eX == 50 *5) {eY -= 50; eX = 0}
B --
obj
Object icon = 'Icon.dmi'
Expected Results: The old objects are removed while the new objects are created with the pixel_x and pixel_y that were set on them.
Actual Results: For some reason this doesn't happen and you can see the objects with null pixel_x and pixel_y?
Does the problem occur:
Every time? Or how often? Most of the times, though not always I'd say
In other games? On every game I've tested this on yes
In other user accounts? Yes
On other computers? Yes
When does the problem NOT occur? The first time you use the verb (if there are no existing objects, of course)
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.) It did, I tested it on both the latest version, the previous version, and 512.1442.
Workarounds: This may be caused when the object is being deleted. I've also created the object on src's contents and you wouldn't see the problem; but, of course, this issue wasn't happening as the objects weren't collected by the garbage collector, but after being set to loc = null, the same visual bug happened.
Gif: https://imgur.com/a/TlHCZqT
Gif with one single object: https://imgur.com/a/m9cOqqx
Source: https://mega.nz/#!0NBklCAI!kOrPk_CwhFh_m4yl6XU5UR0-9oNKhDB4M kmNOBgQ45M
https://imgur.com/a/tstSCKu