diff options
Diffstat (limited to 'apps/plugins/chessbox/gnuchess.h')
-rw-r--r-- | apps/plugins/chessbox/gnuchess.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/plugins/chessbox/gnuchess.h b/apps/plugins/chessbox/gnuchess.h index b7a3a309f8..f52e1b1a0a 100644 --- a/apps/plugins/chessbox/gnuchess.h +++ b/apps/plugins/chessbox/gnuchess.h | |||
@@ -1,7 +1,7 @@ | |||
1 | 1 | ||
2 | #ifndef _GNUCHESS_H_ | 2 | #ifndef _GNUCHESS_H_ |
3 | #define _GNUCHESS_H_ | 3 | #define _GNUCHESS_H_ |
4 | 4 | #define MAX_GAME_CNT 256 | |
5 | #define neutral 2 | 5 | #define neutral 2 |
6 | #define white 0 | 6 | #define white 0 |
7 | #define black 1 | 7 | #define black 1 |
@@ -39,9 +39,10 @@ extern bool withbook; | |||
39 | extern long Level; | 39 | extern long Level; |
40 | extern short TCflag,TCmoves,TCminutes; | 40 | extern short TCflag,TCmoves,TCminutes; |
41 | extern short timeout; | 41 | extern short timeout; |
42 | extern short GameCnt,Game50,castld[2],kingmoved[2],OperatorTime; | 42 | extern unsigned char GameCnt; /* Bug fix rolls over at 255 instead of overflow */ |
43 | extern short Game50,castld[2],kingmoved[2],OperatorTime; | ||
43 | extern struct TimeControlRec TimeControl; | 44 | extern struct TimeControlRec TimeControl; |
44 | extern struct GameRec GameList[240]; | 45 | extern struct GameRec GameList[MAX_GAME_CNT]; |
45 | 46 | ||
46 | /* ---- The beginning of a GNUChess v2 APIfication ---- */ | 47 | /* ---- The beginning of a GNUChess v2 APIfication ---- */ |
47 | void SetTimeControl(void); | 48 | void SetTimeControl(void); |