Alter engine so we can init a gamestate with no arguments. May be able to be utilized in ai code
This commit is contained in:
		@@ -218,7 +218,9 @@ static int digits_ceiling(unsigned int n)
 | 
				
			|||||||
 * through this function */
 | 
					 * through this function */
 | 
				
			||||||
struct gamestate* gamestate_init(int argc, char **argv)
 | 
					struct gamestate* gamestate_init(int argc, char **argv)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    struct gameoptions *opt = parse_options(gameoptions_default(), argc, argv);
 | 
					    struct gameoptions *opt = gameoptions_default();
 | 
				
			||||||
 | 
					    if (argc != 0) parse_options(opt, argc, argv);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!opt) return NULL;
 | 
					    if (!opt) return NULL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    srand(time(NULL));
 | 
					    srand(time(NULL));
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user