mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-12-25 21:59:30 +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 1: E+EEGAIS
|
||||
commande> p MA
|
||||
Cannot pass (2)
|
||||
commande> a T
|
||||
Rack 0: EENN+MEN
|
||||
Rack 1: E+EEGAIS
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue