aboutsummaryrefslogtreecommitdiff
path: root/internal/game/game.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/game.go')
-rw-r--r--internal/game/game.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/game/game.go b/internal/game/game.go
index 37a1f3f..7447215 100644
--- a/internal/game/game.go
+++ b/internal/game/game.go
@@ -177,10 +177,9 @@ func (g *Game) handleGameCommand(sess *net.Session, input string) {
Args: strings.Join(parts[1:], " "),
Timestamp: time.Now(),
})
- if !p.OptionBool("queue_actions_silently") {
+ if !p.OptionBool("queue_silently") {
sess.WriteLine(fmt.Sprintf("\nYou prepare to %s.", cmd))
}
- sess.Write("\r\n> ")
return
}
@@ -191,10 +190,9 @@ func (g *Game) handleGameCommand(sess *net.Session, input string) {
Timestamp: time.Now(),
}
g.cancelRest(p.Name)
- if !p.OptionBool("queue_actions_silently") {
+ if !p.OptionBool("queue_silently") {
sess.WriteLine(fmt.Sprintf("\nYou prepare to %s.", cmd))
}
- sess.Write("\r\n> ")
}
func (g *Game) executeCommand(sess *net.Session, cmd string, args []string, rawInput string) {
@@ -401,6 +399,7 @@ func (g *Game) ProcessQueuedCommands() {
if len(parts) > 0 {
g.executeCommand(qc.Session, parts[0], parts[1:], qc.Command+" "+qc.Args)
}
+ qc.Session.Write("\r\n> ")
}
delete(g.freeQueue, p.Name)
}
@@ -418,6 +417,7 @@ func (g *Game) ProcessQueuedCommands() {
if len(parts) > 0 {
g.executeCommand(qc.Session, parts[0], parts[1:], qc.Command+" "+qc.Args)
}
+ qc.Session.Write("\r\n> ")
}
g.activeQueue = make(map[string]*QueuedCommand)