Remove mainLoop label from garden

This commit is contained in:
William Martin 2024-02-17 13:45:39 +01:00
parent b07f955c23
commit 81be2b67ee

View file

@ -236,16 +236,15 @@ func gardenRun(opts *GardenOptions) error {
}
}()
mainLoop:
for {
oldX := player.X
oldY := player.Y
d := <-dirc
if d == Quit {
break mainLoop
break
} else if !player.move(d) {
continue mainLoop
continue
}
underPlayer := garden[player.Y][player.X]