Check autoReady_v1 in a backwards compatible way (old games won't have set it

at all).


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@338 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Michael Bayne
2007-06-28 07:02:47 +00:00
parent 33fbff4aba
commit b19e96796c
@@ -140,8 +140,12 @@ public class GameControlBackend
evt.ezProps = new Object(); evt.ezProps = new Object();
populateProperties(evt.ezProps); populateProperties(evt.ezProps);
// determine whether to automatically start the game in a backwards compatible way
var autoReady :Boolean =
("autoReady_v1" in evt.userProps) ? evt.userProps["autoReady_v1"] : true;
// ok, we're now hooked-up with the game code // ok, we're now hooked-up with the game code
_ctrl.userCodeIsConnected(evt.userProps["autoReady_v1"]); _ctrl.userCodeIsConnected(autoReady);
} }
protected function setUserCodeProperties (o :Object) :void protected function setUserCodeProperties (o :Object) :void