Oops, forgot the 'to' field in Yield messages
This commit is contained in:
parent
fb3bb64ff6
commit
313d91bcaf
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ function initMessageHandlers() {
|
||||||
var state = states.get(gameID);
|
var state = states.get(gameID);
|
||||||
if(state != undefined) {
|
if(state != undefined) {
|
||||||
switch(compare(state.latest.public.coordinates, o.message.latestKnown)) {
|
switch(compare(state.latest.public.coordinates, o.message.latestKnown)) {
|
||||||
case -1: Messaging.send({tag: "Yield", onGameID: gameID});
|
case -1: Messaging.send({tag: "Yield", onGameID: gameID, to: o.from});
|
||||||
case 1: Messaging.send({tag: "Share", gameSave: state.latest});
|
case 1: Messaging.send({tag: "Share", gameSave: state.latest});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue