From d554bf73efe73a1b7f2561f4a53e05f5a8b500ba Mon Sep 17 00:00:00 2001 From: Sacha Ligthert Date: Wed, 6 Dec 2023 22:30:22 +0100 Subject: [PATCH] Prevent from TPing into a wall. --- game.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game.go b/game.go index ee10ed0..f25635e 100644 --- a/game.go +++ b/game.go @@ -177,8 +177,8 @@ func quit(game *Game) { func (game *Game) randPos() Position { var pos Position - x := 1 + rand.Intn(77) - y := 1 + rand.Intn(22) + x := 2 + rand.Intn(76) + y := 2 + rand.Intn(21) pos.x = x pos.y = y