- // Search should be limited by nodes, time or depth ?
- if (valType == "nodes")
- limits.maxNodes = atoi(valStr.c_str());
- else if (valType == "time")
- limits.maxTime = 1000 * atoi(valStr.c_str()); // maxTime is in ms
- else
- limits.maxDepth = atoi(valStr.c_str());
+ if (valType == "time")
+ limits.movetime = 1000 * atoi(valStr.c_str()); // movetime is in ms
+
+ else if (valType == "nodes")
+ limits.nodes = atoi(valStr.c_str());