Provide "sd <n>" as (primary) alias of "depth <n>" for xboard conformance.
[gnushogi.git] / gnushogi / commondsp.c
index 45c2e2e..2839fc9 100644 (file)
@@ -1860,7 +1860,11 @@ InputCommand(char *command)
         }
         else if (strcmp(s, "depth") == 0)
         {
-            dsp->ChangeSearchDepth();
+            dsp->ChangeSearchDepth(sx + strlen("depth"));
+        }
+        else if (strcmp(s, "sd") == 0)
+        {
+            dsp->ChangeSearchDepth(sx + strlen("sd"));
         }
         else if (strcmp(s, "hashdepth") == 0)
         {