X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gnushogi%2Fcommondsp.c;h=62e465549f83d2e515fb95f03eacd5c8f23d8d47;hb=0f5d4e2b00e7911f02ed0f404a3d96d699cabd7e;hp=6734e22e677b03ed8c423873872d8c9b80fe37c9;hpb=0995f733591542a626dd01c9c8552fffaf4ea04d;p=gnushogi.git diff --git a/gnushogi/commondsp.c b/gnushogi/commondsp.c index 6734e22..62e4655 100644 --- a/gnushogi/commondsp.c +++ b/gnushogi/commondsp.c @@ -50,7 +50,8 @@ #include "gnushogi.h" char mvstr[4][6]; -char *InPtr; +int mycnt1, mycnt2; +static char *InPtr; struct display *dsp = &raw_display; @@ -1963,24 +1964,3 @@ InputCommand(char *command) } } } - - -void -SetTimeControl(void) -{ - if (TCflag) - { - TimeControl.moves[black] = TimeControl.moves[white] = TCmoves; - TimeControl.clock[black] += 6000L * TCminutes + TCseconds * 100; - TimeControl.clock[white] += 6000L * TCminutes + TCseconds * 100; - } - else - { - TimeControl.moves[black] = TimeControl.moves[white] = 0; - TimeControl.clock[black] = TimeControl.clock[white] = 0; - } - - flag.onemove = (TCmoves == 1); - et = 0; - ElapsedTime(COMPUTE_AND_INIT_MODE); -}