It appears issaved() returns null when used to test the saveability of a global variable. The reference states that the function should return 1 or 0, but it only seems to apply if the variable is attached to an object.
Code Snippet (if applicable) to Reproduce Problem:
var dreamer = "lordandrew"
var global/sleeper = "kaiochao"
var tmp/tempo = "drums"
var const/constellation = "orion"
mob/verb/TheBigGame()
world << issaved(dreamer)
world << isnull(issaved(dreamer))
world << issaved(sleeper)
world << isnull(issaved(sleeper))
world << issaved(tempo)
world << isnull(issaved(tempo))
// Testing out an "atomic" variable.
world << issaved(src.density)
/*
// I discovered the below two don't work at all due to an unrelated
// bug with issaved(), referenced in the thread linked below:
// http://www.byond.com/forum/?post=1878028
world << issaved(constellation)
world << isnull(issaved(constellation))
*/
Expected Results:
issaved() should return 0 for global variables.
Actual Results:
issaved() returns null for global variables.
http://www.byond.com/forum/?post=1979983