Don't make endGame varargs. Shoulda done this a while ago.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@226 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -479,13 +479,9 @@ public class EZGameControl extends BaseControl
|
|||||||
/**
|
/**
|
||||||
* End the game. The specified player ids are winners!
|
* End the game. The specified player ids are winners!
|
||||||
*/
|
*/
|
||||||
public function endGame (... winnerIds) :void
|
public function endGame (winnerIds :Array) :void
|
||||||
{
|
{
|
||||||
var args :Array = winnerIds;
|
callEZCode("endGame_v2", winnerIds);
|
||||||
args.unshift("endGame_v2");
|
|
||||||
|
|
||||||
// goddamn var-args complications in actionscript
|
|
||||||
callEZCode.apply(null, args);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -590,6 +586,8 @@ public class EZGameControl extends BaseControl
|
|||||||
}
|
}
|
||||||
} catch (err :Error) {
|
} catch (err :Error) {
|
||||||
trace("Unable to call ez code: " + err);
|
trace("Unable to call ez code: " + err);
|
||||||
|
trace(err.getStackTrace());
|
||||||
|
//Log.testing(err.getStackTrace());
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user