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
Trivial
[progcomp2012.git]
/
judge
/
manager
/
main.cpp
diff --git
a/judge/manager/main.cpp
b/judge/manager/main.cpp
index
0fbd6ae
..
9d2cad1
100644
(file)
--- a/
judge/manager/main.cpp
+++ b/
judge/manager/main.cpp
@@
-8,6
+8,7
@@
#include "game.h"
#include "game.h"
+
using namespace std;
Piece::Colour SetupGame(int argc, char ** argv);
using namespace std;
Piece::Colour SetupGame(int argc, char ** argv);
@@
-82,7
+83,13
@@
Piece::Colour SetupGame(int argc, char ** argv)
++ii;
break;
case 'g':
++ii;
break;
case 'g':
+ #ifdef BUILD_GRAPHICS
graphics = !graphics;
graphics = !graphics;
+ #else
+ fprintf(stderr, "ERROR: -g switch supplied, but the program was not built with graphics.\n Please do not use the -g switch.");
+ exit(EXIT_FAILURE);
+ #endif //BUILD_GRAPHICS
+
break;
case 'p':
printBoard = !printBoard;
break;
case 'p':
printBoard = !printBoard;
UCC
git Repository :: git.ucc.asn.au