ID:90626
 
Resolved
The atom.mouse_opacity var did not work with initial().
BYOND Version:462
Operating System:Windows XP Pro
Web Browser:Opera 10.10
Applies to:DM Language
Status: Resolved (463)

This issue has been resolved.
Descriptive Problem Summary:
When using the inital() proc on an object's mouse_opacity variable, it will always return null.

Code Snippet (if applicable) to Reproduce Problem:
mob/Login()
..()
new/obj/Test1
new/obj/Test2
new/obj/Test3

obj
New()
..()
world << "[name] Mouse Opacity:[mouse_opacity] Initial Mouse Opacity:[initial(mouse_opacity)]"
Test1
Test2
mouse_opacity = 2
Test3
New()
mouse_opacity = 0
..()


Expected Results:
Test1  Mouse Opacity:1  Initial Mouse Opacity:1
Test2 Mouse Opacity:2 Initial Mouse Opacity:2
Test3 Mouse Opacity:0 Initial Mouse Opacity:0


Actual Results:
Test1  Mouse Opacity:1  Initial Mouse Opacity:
Test2 Mouse Opacity:2 Initial Mouse Opacity:
Test3 Mouse Opacity:2 Initial Mouse Opacity:


Workarounds:
For now, I store the original mouse_opacity in another variable upon New() and just grab that instead.