Modified manager program, updated website
[progcomp2012.git] / manager / main.cpp
index 44f8fd3..1fe32bc 100644 (file)
@@ -75,7 +75,10 @@ Piece::Colour SetupGame(int argc, char ** argv)
                                                fprintf(stderr, "ARGUMENT_ERROR - Expected timeout value after -t switch!\n");
                                                exit(EXIT_FAILURE);
                                        }
-                                       timeout = atof(argv[ii+1]);
+                                       if (strcmp(argv[ii+1], "inf") == 0)
+                                               timeout = -1;
+                                       else
+                                               timeout = atof(argv[ii+1]);
                                        ++ii;
                                        break;
                                case 'g':

UCC git Repository :: git.ucc.asn.au