src/ai/ai.h
changeset 9413 7042a8ec3fa8
parent 9354 845e07db4549
child 10207 c291a21b304e
equal deleted inserted replaced
9412:163c465bf250 9413:7042a8ec3fa8
    65 		return false;
    65 		return false;
    66 
    66 
    67 	/* If in network, and server, possible AI */
    67 	/* If in network, and server, possible AI */
    68 	if (_networking && _network_server) {
    68 	if (_networking && _network_server) {
    69 		/* Do we want AIs in multiplayer? */
    69 		/* Do we want AIs in multiplayer? */
    70 		if (!_settings.ai.ai_in_multiplayer)
    70 		if (!_settings_game.ai.ai_in_multiplayer)
    71 			return false;
    71 			return false;
    72 
    72 
    73 		/* Only the NewAI is allowed... sadly enough the old AI just doesn't support this
    73 		/* Only the NewAI is allowed... sadly enough the old AI just doesn't support this
    74 		 *  system, because all commands are delayed by at least 1 tick, which causes
    74 		 *  system, because all commands are delayed by at least 1 tick, which causes
    75 		 *  a big problem, because it uses variables that are only set AFTER the command
    75 		 *  a big problem, because it uses variables that are only set AFTER the command
    76 		 *  is really executed... */
    76 		 *  is really executed... */
    77 		if (!_settings.ai.ainew_active)
    77 		if (!_settings_game.ai.ainew_active)
    78 			return false;
    78 			return false;
    79 	}
    79 	}
    80 
    80 
    81 	return true;
    81 	return true;
    82 }
    82 }