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:
@@ -140,8 +140,12 @@ public class GameControlBackend
|
||||
evt.ezProps = new Object();
|
||||
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
|
||||
_ctrl.userCodeIsConnected(evt.userProps["autoReady_v1"]);
|
||||
_ctrl.userCodeIsConnected(autoReady);
|
||||
}
|
||||
|
||||
protected function setUserCodeProperties (o :Object) :void
|
||||
|
||||
Reference in New Issue
Block a user