git.ucc.asn.au
/
progcomp2012.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Setup client and server properly
[progcomp2012.git]
/
judge
/
manager
/
main.cpp
diff --git
a/judge/manager/main.cpp
b/judge/manager/main.cpp
index
83b3c63
..
08c381c
100644
(file)
--- a/
judge/manager/main.cpp
+++ b/
judge/manager/main.cpp
@@
-242,7
+242,10
@@
Piece::Colour SetupGame(int argc, char ** argv)
}
else if (red == NULL || blue == NULL) //Not enough players
{
}
else if (red == NULL || blue == NULL) //Not enough players
{
- fprintf(stderr, "ARGUMENT_ERROR - Did not recieve enough players (did you mean to use the -f switch?)\n");
+ if (client)
+ fprintf(stderr, "ARGUMENT_ERROR - When using the --client switch, supply an IP for the Red player.\n");
+ else
+ fprintf(stderr, "ARGUMENT_ERROR - Did not recieve enough players (did you mean to use the -f switch?)\n");
exit(EXIT_FAILURE);
}
exit(EXIT_FAILURE);
}
UCC
git Repository :: git.ucc.asn.au