diff options
-rw-r--r-- | racing/lobby.gd | 4 | ||||
-rw-r--r-- | racing/multiplayer.gd | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/racing/lobby.gd b/racing/lobby.gd index 374fc07..2f965d9 100644 --- a/racing/lobby.gd +++ b/racing/lobby.gd | |||
@@ -15,7 +15,7 @@ const MAX_PLAYERS = 250 | |||
15 | const PROTOCOL_VERSION = 2 | 15 | const PROTOCOL_VERSION = 2 |
16 | const RECIPIENT_BROADCAST_ALL = -1 | 16 | const RECIPIENT_BROADCAST_ALL = -1 |
17 | const LOBBY_MAP_NAME = "ll1_racing" | 17 | const LOBBY_MAP_NAME = "ll1_racing" |
18 | const VERSION = "0.0.4" | 18 | const VERSION = "0.0.5" |
19 | 19 | ||
20 | const LL1_AREAS = [ | 20 | const LL1_AREAS = [ |
21 | ["Starting Room", 0, 0, 0], | 21 | ["Starting Room", 0, 0, 0], |
@@ -314,6 +314,8 @@ func _read_p2p_packet() -> void: | |||
314 | if members_to_join.empty(): | 314 | if members_to_join.empty(): |
315 | _start_game() | 315 | _start_game() |
316 | 316 | ||
317 | _read_p2p_packet() | ||
318 | |||
317 | 319 | ||
318 | func _send_p2p_packet(data: Dictionary, recipient_id: int, mode: int, needs_ack: bool) -> void: | 320 | func _send_p2p_packet(data: Dictionary, recipient_id: int, mode: int, needs_ack: bool) -> void: |
319 | global._print("SENDING Packet %s" % JSON.print(data)) | 321 | global._print("SENDING Packet %s" % JSON.print(data)) |
diff --git a/racing/multiplayer.gd b/racing/multiplayer.gd index e740cee..52d76bf 100644 --- a/racing/multiplayer.gd +++ b/racing/multiplayer.gd | |||
@@ -207,6 +207,8 @@ func _read_p2p_packet() -> void: | |||
207 | if remote_id in active_lobby_members: | 207 | if remote_id in active_lobby_members: |
208 | _handle_packet(packet) | 208 | _handle_packet(packet) |
209 | 209 | ||
210 | _read_p2p_packet() | ||
211 | |||
210 | 212 | ||
211 | func _handle_packet(packet): | 213 | func _handle_packet(packet): |
212 | var remote_id = packet["steam_id_remote"] | 214 | var remote_id = packet["steam_id_remote"] |