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:
Tiehuis 2015-02-25 18:58:36 +13:00
parent c0d4b6de3e
commit 05f2713179

View File

@ -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));