Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions networking/action_handlers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ local function action_rejoinedLobby(p)
reconnectToken = token
lastLobbyCode = code
MP.self_reconnect_countdown = nil
MP.GAME.timer_started = false
MP.GAME.nemesis_timer_started = false
MP.ACTIONS.sync_client()
MP.ACTIONS.lobby_info()
MP.UI.update_connection_status()
Expand Down Expand Up @@ -145,6 +147,9 @@ local function action_enemyDisconnected(p)
local timeout = p.timeout or 60
sendWarnMessage("Opponent disconnected, waiting for reconnection...", "MULTIPLAYER")

MP.GAME.timer_started = false
MP.GAME.nemesis_timer_started = false

MP.enemy_disconnect_countdown = {
end_time = love.timer.getTime() + timeout,
display = timeout .. "s remaining",
Expand Down Expand Up @@ -242,6 +247,8 @@ local function action_reconnecting()
-- Only show if we were in a lobby and don't already have a countdown running
if reconnectToken and lastLobbyCode and not MP.self_reconnect_countdown then
MP.LOBBY.connected = false
MP.GAME.timer_started = false
MP.GAME.nemesis_timer_started = false
MP.UI.update_connection_status()
sendWarnMessage("Connection lost, attempting to reconnect...", "MULTIPLAYER")

Expand Down