null loc causes vis_contents to not display properly
Numbered Steps to Reproduce Problem:
Set player's loc to null
Add screen object that has vis_contents
Note that the screen object's vis_contents aren't displayed.
Code Snippet (if applicable) to Reproduce Problem:
world
view = 6
maxx = 13
maxy = 13
maxz = 1
obj
background
icon = 'background.dmi'
screen_loc = "1,1"
plane = 1
New()
..()
vis_contents += new/obj/button
button
icon = 'button.dmi'
screen_loc = "1,1"
plane = 1
layer = OBJ_LAYER + 1
mob
Login()
// lack of ..() or setting loc to a null value results in obj/background vis_contents not displaying
client.screen += new/obj/background
Test Build
Expected Results:
vis_contents to display appropriately.
Actual Results:
vis_contents aren't displayed appropriately.
Does the problem occur:
Every time? Or how often? Every time
In other games? Yes
In other user accounts? Yes
On other computers? Only have one computer
When does the problem NOT occur?
When setting the player's loc to a non-null value, adding everything in vis_contents to client.screen, or outputting vis_contents using <<.
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.) Unsure.
Workarounds:
Set the player's location to a non-null value, adding everything in vis_contents to client.screen, or outputting vis_contents using <<.