X-Git-Url: https://git.ucc.asn.au/?p=progcomp2012.git;a=blobdiff_plain;f=judge%2Fmanager%2Fmain.cpp;h=9d2cad145534087e35552e5d1731c7a1b2f8d75b;hp=0fbd6aef6c35d51476a33407681a28a2e11a6530;hb=de72851794e06d2e179799b95e1ea2955b9560b1;hpb=1a03b2543b67f0551e62babec4cd119f1e0e4640 diff --git a/judge/manager/main.cpp b/judge/manager/main.cpp index 0fbd6ae..9d2cad1 100644 --- a/judge/manager/main.cpp +++ b/judge/manager/main.cpp @@ -8,6 +8,7 @@ #include "game.h" + 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': + #ifdef BUILD_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;