Commit 12930ea8 authored by Eben Blaisdell's avatar Eben Blaisdell

message changes

parent e6b13812
......@@ -479,7 +479,7 @@ Block.prototype.sendMessage = function(dir){
messagex = this.x + Block.dx(dir);
messagey = this.y + Block.dy(dir);
if(messagex>=0 && messagey>=0 && messagex<this.game.width && messagey<this.game.height && this.game.board[messagex][messagey] != null) {
this.game.board[messagex][messagey].onMessage((dir+2)%4);
this.game.board[messagex][messagey].onMessage(((parseInt(dir)+2)%4).toString());
}
}
Block.prototype.onMessage = function(dir){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment