Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ceddral
fahrradwurstmond
Commits
f858bd66
Commit
f858bd66
authored
Sep 24, 2021
by
ceddral
Browse files
remove some noisy debug messages
these parts seems reliable enough for now
parent
02b59ec4
Changes
2
Hide whitespace changes
Inline
Side-by-side
game.go
View file @
f858bd66
...
...
@@ -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
{
...
...
player.go
View file @
f858bd66
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment