Fixed decoding problem in GameControlBackend, switched to varargs in manager.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@235 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Michael Bayne
2007-03-11 06:37:03 +00:00
parent 13b8913d5f
commit 0306b072df
2 changed files with 3 additions and 3 deletions
@@ -787,8 +787,8 @@ public class GameControlBackend
} else if (EZGameObject.TICKER == name) {
var targs :Array = event.getArgs();
callUserCode("messageReceived_v1", (targs[0] as String),
(targs[1] as Integer).value);
trace("Got " + targs + " :" + targs[0] + "/" + targs[1]);
callUserCode("messageReceived_v1", (targs[0] as String), (targs[1] as int));
}
}
@@ -132,7 +132,7 @@ public class EZGameManager extends GameManager
validateUser(caller);
if (playerId == 0) {
_gameObj.postMessage(EZGameObject.USER_MESSAGE, new Object[] { msg, data });
_gameObj.postMessage(EZGameObject.USER_MESSAGE, msg, data);
} else {
sendPrivateMessage(playerId, msg, data);
}