diff options
Diffstat (limited to 'go/client')
| -rw-r--r-- | go/client/game.go | 2 | ||||
| -rw-r--r-- | go/client/main.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/go/client/game.go b/go/client/game.go index 2ea3a9f4..c328ddf7 100644 --- a/go/client/game.go +++ b/go/client/game.go @@ -533,7 +533,7 @@ func (g *Game) Update() error { } else if inpututil.IsKeyJustPressed(ebiten.KeySpace) { g.passButton.Click(0, 0) } else if inpututil.IsKeyJustPressed(ebiten.KeyQ) { - return fmt.Errorf("Exit") + return ebiten.Termination } else if inpututil.IsKeyJustPressed(ebiten.KeyEscape) { g.removeChoice() g.selectedObject = nil diff --git a/go/client/main.go b/go/client/main.go index 86491a4d..c696ccf7 100644 --- a/go/client/main.go +++ b/go/client/main.go @@ -94,7 +94,7 @@ func main() { app.pushActivity(startMenu) if err := ebiten.RunGame(app); err != nil { - if err.Error() != "Exit" { + if err != ebiten.Termination { log.Fatal(err) } } |
