diff --git a/test/freegame_change.ref b/test/freegame_change.ref index 7496e1c..60148b4 100644 --- a/test/freegame_change.ref +++ b/test/freegame_change.ref @@ -15,6 +15,7 @@ commande> a T Rack 0: EENN+MEN Rack 1: E+EEGAIS commande> p MA +Cannot pass (2) commande> a T Rack 0: EENN+MEN Rack 1: E+EEGAIS diff --git a/test/freegame_passing.ref b/test/freegame_passing.ref index cd0e883..bfeed0b 100644 --- a/test/freegame_passing.ref +++ b/test/freegame_passing.ref @@ -33,7 +33,9 @@ commande> p commande> p commande> p commande> p +Cannot pass (3) commande> p +Cannot pass (3) commande> a S Score 0: -11 Score 1: 793 diff --git a/utils/eliottxt.cpp b/utils/eliottxt.cpp index 5d46913..37af01b 100644 --- a/utils/eliottxt.cpp +++ b/utils/eliottxt.cpp @@ -685,8 +685,9 @@ void loopFreegame(PublicGame &iGame) { letters = parseLetters(tokens, 1, iGame.getDic()); } - // TODO: check return value - iGame.freeGamePass(letters); + int res = iGame.freeGamePass(letters); + if (res != 0) + printf("Cannot pass (%d)\n", res); } else if (command == L'q') quit = true;