call gi_initPlayerInfo() for defaults when not provided on commandline.

This commit is contained in:
ehouse 2009-03-08 19:57:27 +00:00
parent 42ab780680
commit b770c51f58

View file

@ -1033,6 +1033,11 @@ main( int argc, char** argv )
mainParams.serverRole = SERVER_ISCLIENT;
}
if ( mainParams.needsNewGame ) {
gi_initPlayerInfo( MPPARM(mainParams.util->mpool)
&mainParams.gi, NULL );
}
/* curses doesn't have newgame dialog */
if ( useCurses && !mainParams.needsNewGame ) {
#if defined PLATFORM_NCURSES