Commit f858bd66 authored by ceddral's avatar ceddral
Browse files

remove some noisy debug messages

these parts seems reliable enough for now
parent 02b59ec4
......@@ -388,7 +388,6 @@ func (g *Game) Register(glp *Player) {
if err != nil {
log.Println(err)
}
log.Printf("Player >%s< reconnected\n", p.name)
g.Unlock()
g.broadcastState(nil)
}
......@@ -436,13 +435,11 @@ func (g *Game) Loop(p *GamePlayer, initState GameState) {
fullRedraw := false
var err error
for {
log.Println("Game Player Loop:", p.name)
select {
case newState := <-p.gameEvent:
if newState != nil {
state = newState
}
log.Println("State:", state)
if state.getAgent() == p {
state.agentTransition(p)
} else {
......
......@@ -175,7 +175,6 @@ func (p *Player) inputLoop() {
}
out:
if toKey(key) != keyNull {
log.Printf("key %#v\n", key)
select {
case p.inputEvent <- key:
default:
......
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