laneya2

cave exploration game
git clone https://git.ce9e.org/laneya2.git

commit
5e72410b33044f67814ba5533333b0039fd0c4c7
parent
a5308ddd4a7239545d33390055e73b624cd17223
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2025-04-26 20:09
stop game when no players are left

Diffstat

M game.go 1 +

1 files changed, 1 insertions, 0 deletions


diff --git a/game.go b/game.go

@@ -305,6 +305,7 @@ func (game *Game) run() {
  305   305 				mux.Lock()
  306   306 				delete(games, game.Id)
  307   307 				mux.Unlock()
   -1   308 				return
  308   309 			}
  309   310 		case pmsg := <-game.Msg:
  310   311 			if _, ok := game.Players[pmsg.Player]; !ok {