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:
@@ -787,8 +787,8 @@ public class GameControlBackend
|
|||||||
|
|
||||||
} else if (EZGameObject.TICKER == name) {
|
} else if (EZGameObject.TICKER == name) {
|
||||||
var targs :Array = event.getArgs();
|
var targs :Array = event.getArgs();
|
||||||
callUserCode("messageReceived_v1", (targs[0] as String),
|
trace("Got " + targs + " :" + targs[0] + "/" + targs[1]);
|
||||||
(targs[1] as Integer).value);
|
callUserCode("messageReceived_v1", (targs[0] as String), (targs[1] as int));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ public class EZGameManager extends GameManager
|
|||||||
validateUser(caller);
|
validateUser(caller);
|
||||||
|
|
||||||
if (playerId == 0) {
|
if (playerId == 0) {
|
||||||
_gameObj.postMessage(EZGameObject.USER_MESSAGE, new Object[] { msg, data });
|
_gameObj.postMessage(EZGameObject.USER_MESSAGE, msg, data);
|
||||||
} else {
|
} else {
|
||||||
sendPrivateMessage(playerId, msg, data);
|
sendPrivateMessage(playerId, msg, data);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user