mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-01-13 20:03:23 +01:00
Text interface: correctly check the return value when passing
This commit is contained in:
parent
5bb492ceb4
commit
fd1773ef6e
3 changed files with 6 additions and 2 deletions
|
@ -15,6 +15,7 @@ commande> a T
|
||||||
Rack 0: EENN+MEN
|
Rack 0: EENN+MEN
|
||||||
Rack 1: E+EEGAIS
|
Rack 1: E+EEGAIS
|
||||||
commande> p MA
|
commande> p MA
|
||||||
|
Cannot pass (2)
|
||||||
commande> a T
|
commande> a T
|
||||||
Rack 0: EENN+MEN
|
Rack 0: EENN+MEN
|
||||||
Rack 1: E+EEGAIS
|
Rack 1: E+EEGAIS
|
||||||
|
|
|
@ -33,7 +33,9 @@ commande> p
|
||||||
commande> p
|
commande> p
|
||||||
commande> p
|
commande> p
|
||||||
commande> p
|
commande> p
|
||||||
|
Cannot pass (3)
|
||||||
commande> p
|
commande> p
|
||||||
|
Cannot pass (3)
|
||||||
commande> a S
|
commande> a S
|
||||||
Score 0: -11
|
Score 0: -11
|
||||||
Score 1: 793
|
Score 1: 793
|
||||||
|
|
|
@ -685,8 +685,9 @@ void loopFreegame(PublicGame &iGame)
|
||||||
{
|
{
|
||||||
letters = parseLetters(tokens, 1, iGame.getDic());
|
letters = parseLetters(tokens, 1, iGame.getDic());
|
||||||
}
|
}
|
||||||
// TODO: check return value
|
int res = iGame.freeGamePass(letters);
|
||||||
iGame.freeGamePass(letters);
|
if (res != 0)
|
||||||
|
printf("Cannot pass (%d)\n", res);
|
||||||
}
|
}
|
||||||
else if (command == L'q')
|
else if (command == L'q')
|
||||||
quit = true;
|
quit = true;
|
||||||
|
|
Loading…
Reference in a new issue