forked from len0rd/rockbox
End-of-game bug fixed by Bluechip
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4031 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c9184057e8
commit
526fc164ae
1 changed files with 12 additions and 10 deletions
|
|
@ -2,7 +2,7 @@
|
|||
Designed, Written, AI Bots, the lot ...BlueChip =8ªD#
|
||||
|
||||
Thanks espcially to
|
||||
DevZer0, LinusN, Zagor
|
||||
DevZer0, LinusN, Zagor, scott666
|
||||
for their help with understanding Rockbox & the SDK
|
||||
|
||||
Please note that the code formatting is not that which was
|
||||
|
|
@ -15,6 +15,7 @@
|
|||
/*
|
||||
* Version Date Who Comment
|
||||
* -------- -------- ---- ------------------------------------------------
|
||||
* 1.4 20030729 BC Ensure game terminates even if dreamer disabled
|
||||
* 1.3 20030729 BC Fixed display bug introduced by port to plugin
|
||||
* Updated documentation
|
||||
* 1.2 2003 Ported to new plugin system
|
||||
|
|
@ -30,10 +31,11 @@
|
|||
* # Reintroduce suspend feature under plugin system
|
||||
*/
|
||||
|
||||
/* Plugin header */
|
||||
#include "plugin.h"
|
||||
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
|
||||
/* Plugin header */
|
||||
#include "plugin.h"
|
||||
static struct plugin_api* rb;
|
||||
|
||||
/***************************************************************************/
|
||||
|
|
@ -1194,9 +1196,6 @@ static bool calcposs(struct move* plist, unsigned char* pcnt, bool turn)
|
|||
{
|
||||
int i;
|
||||
|
||||
/* only evaluate moves for AIBOTs or HUMAN+HELP */
|
||||
if ( (player[turn]==AIBOT) || (ai_help[turn]) )
|
||||
{
|
||||
/* get list of all possible moves */
|
||||
(*pcnt) = getplist(plist, turn);
|
||||
|
||||
|
|
@ -1204,6 +1203,9 @@ static bool calcposs(struct move* plist, unsigned char* pcnt, bool turn)
|
|||
if (!(*pcnt))
|
||||
return(true);
|
||||
|
||||
/* only evaluate moves for AIBOTs or HUMAN+HELP */
|
||||
if ( (player[turn]==AIBOT) || (ai_help[turn]) )
|
||||
{
|
||||
/* mark all possible moves on board */
|
||||
for (i=0; i<(*pcnt); i++)
|
||||
board[plist[i].y][plist[i].x] = POSS;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue