Skip to content

Commit 205b0bb

Browse files
authored
Merge pull request #515 from markus-wa/bot-connected
fix: update Connected flag on bots disconnection
2 parents 4b53a61 + ce407c7 commit 205b0bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/demoinfocs/game_events.go

+2
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,8 @@ func (geh gameEventHandler) playerDisconnect(data map[string]*msg.CSVCMsg_GameEv
672672
geh.dispatch(events.PlayerDisconnected{
673673
Player: pl,
674674
})
675+
676+
pl.IsConnected = false
675677
}
676678
return
677679
}

0 commit comments

Comments
 (0)