From b770c51f586eb0c533bfd35684d21ec53a2084d4 Mon Sep 17 00:00:00 2001 From: ehouse Date: Sun, 8 Mar 2009 19:57:27 +0000 Subject: [PATCH] call gi_initPlayerInfo() for defaults when not provided on commandline. --- linux/linuxmain.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/linux/linuxmain.c b/linux/linuxmain.c index 13bd5c103..ee7e94b5e 100644 --- a/linux/linuxmain.c +++ b/linux/linuxmain.c @@ -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