Remove mainLoop label from garden
This commit is contained in:
parent
b07f955c23
commit
81be2b67ee
1 changed files with 2 additions and 3 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue