From 5490f6c78afe7e8d472c0e2999c3586a83916b0e Mon Sep 17 00:00:00 2001 From: Peter D'Hoye Date: Fri, 3 Aug 2007 21:59:41 +0000 Subject: Chessbox plugin: Reset computer thinking time on forced play (FS #5135) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14170 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/chessbox/chessbox.c | 1 + apps/plugins/chessbox/gnuchess.h | 1 + 2 files changed, 2 insertions(+) (limited to 'apps') diff --git a/apps/plugins/chessbox/chessbox.c b/apps/plugins/chessbox/chessbox.c index fce5c72d61..aedb9f8cc3 100644 --- a/apps/plugins/chessbox/chessbox.c +++ b/apps/plugins/chessbox/chessbox.c @@ -1032,6 +1032,7 @@ void cb_play_game(void) { computer = black; } rb->splash ( 0 , "Thinking..." ); + ElapsedTime(1); #ifdef HAVE_ADJUSTABLE_CPU_FREQ rb->cpu_boost ( true ); #endif diff --git a/apps/plugins/chessbox/gnuchess.h b/apps/plugins/chessbox/gnuchess.h index 5e8974f3b7..5367bb3254 100644 --- a/apps/plugins/chessbox/gnuchess.h +++ b/apps/plugins/chessbox/gnuchess.h @@ -52,5 +52,6 @@ void GNUChess_Initialize(void); int VerifyMove(char s[],short iop,unsigned short *mv); int SelectMove ( short side, short iop , void (*callback)(void), char *move_buffer ); void InitializeStats ( void ); +void ElapsedTime ( short iop ); #endif -- cgit v1.2.3