feat: state transition to collect quotes only when in state idle

This commit is contained in:
Settel 2022-03-15 08:05:13 +01:00
parent 5611f852b1
commit c12e1d36f8

View File

@ -5,7 +5,7 @@ import (
) )
func (gm *Game) CollectQuotes() { func (gm *Game) CollectQuotes() {
err := gm.changeGameState(STATE_ANY, STATE_COLLECT, PHASE_NONE) err := gm.changeGameState(STATE_IDLE, STATE_COLLECT, PHASE_NONE)
if err != nil { if err != nil {
fmt.Println(err) fmt.Println(err)
return return