online multiplayer chess game (note server currently down)
Diffstat (limited to 'pieces/Pawn.gd')
-rw-r--r--pieces/Pawn.gd5
1 files changed, 3 insertions, 2 deletions
diff --git a/pieces/Pawn.gd b/pieces/Pawn.gd
index ab9ea15..a4078ec 100644
--- a/pieces/Pawn.gd
+++ b/pieces/Pawn.gd
@@ -141,7 +141,7 @@ func handle_sprite_input_event(node: Node2D) -> void:
)
Log.debug(promote_to)
var notation := "%s=%s" % [first, promote_to]
- Globals.network.send_move_packet(
+ Globals.network.relay_signal(
{
"start_position": real_position,
"destination": promoteposition,
@@ -149,7 +149,8 @@ func handle_sprite_input_event(node: Node2D) -> void:
"notation": notation,
"white": white
},
- Network.MOVEHEADERS.promote
+ Network.MOVEHEADERS.promote,
+ "positions"
)