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:
parent
c0d4b6de3e
commit
05f2713179
|
@ -218,7 +218,9 @@ static int digits_ceiling(unsigned int n)
|
|||
* through this function */
|
||||
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;
|
||||
|
||||
srand(time(NULL));
|
||||
|
|
Loading…
Reference in New Issue
Block a user