diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-04-03 17:33:12 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-01-27 16:43:53 +0100 |
| commit | e2acea9d73cc717786b083008cb44441ef487299 (patch) | |
| tree | 21c06c1116f0a75dff726148c444be89f30ae4ce /go/client | |
| parent | 011b95e8db31f1306eafb575ed12bed4e2fc1ca3 (diff) | |
| download | muhqs-game-e2acea9d73cc717786b083008cb44441ef487299.tar.gz muhqs-game-e2acea9d73cc717786b083008cb44441ef487299.zip | |
bump ebiten version to 2.5.1 and new APIs
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) } } |
