add cur dir to empty dict search path

This commit is contained in:
Eric House 2014-09-24 07:29:57 -07:00
parent b4ef9ced87
commit 9ad8ad601c

View file

@ -2336,6 +2336,11 @@ main( int argc, char** argv )
XP_ASSERT( mainParams.pgi.nPlayers == mainParams.nLocalPlayers XP_ASSERT( mainParams.pgi.nPlayers == mainParams.nLocalPlayers
+ mainParams.info.serverInfo.nRemotePlayers ); + mainParams.info.serverInfo.nRemotePlayers );
/* add cur dir if dict search dir path is empty */
if ( !mainParams.dictDirs ) {
mainParams.dictDirs = g_slist_append( mainParams.dictDirs, "./" );
}
if ( isServer ) { if ( isServer ) {
if ( mainParams.info.serverInfo.nRemotePlayers == 0 ) { if ( mainParams.info.serverInfo.nRemotePlayers == 0 ) {
mainParams.pgi.serverRole = SERVER_STANDALONE; mainParams.pgi.serverRole = SERVER_STANDALONE;