depth: Use gameOptions.getSkillLevel if not Developer Mode

This commit is contained in:
Calcitem 2021-04-24 12:58:05 +08:00
parent bb0c7851b2
commit 677a391124
2 changed files with 3 additions and 4 deletions

View File

@ -72,7 +72,6 @@
#define DEFAULT_RULE_NUMBER 1
#define DEPTH_ADJUST (0)
//#define FIX_DEPTH (25)
//#define NULL_MOVE

View File

@ -428,9 +428,9 @@ void move_priority_list_shuffle()
Depth getSearchDepth(const Position *pos)
{
#if defined(FIX_DEPTH)
return FIX_DEPTH;
#endif
if (!gameOptions.getDeveloperMode()) {
return gameOptions.getSkillLevel();
}
Depth d = 0;