Skip to content

Commit ce407c7

Browse files
committed
fix: update Connected flag on bots disconnection
fix #514
1 parent 4b53a61 commit ce407c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/demoinfocs/game_events.go

Lines changed: 2 additions & 0 deletions
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)