Commit 843a5198 authored by ceddral's avatar ceddral
Browse files

gamelobby: update on unregister, clear on redraw

clear to erase names of no longer present players
parent 4905eab6
......@@ -77,6 +77,7 @@ func (gl *GameLobby) unregisterUnlocked(name string) {
copy(gl.playerOrder[i:], gl.playerOrder[i+1:])
gl.playerOrder = gl.playerOrder[:len(gl.playerOrder) - 1]
}
gl.Update()
}
func (gl *GameLobby) Resize(w, h int, glp *Player) {
......@@ -136,6 +137,7 @@ func (p *GameLobbyPlayer) Redraw(gl *GameLobby) {
gl.Lock()
defer gl.Unlock()
v := p.lobbyv
v.Clear()
line := 0
fg := tg.ColorDefault
bg := tg.ColorDefault
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment