Fix Chess crashing when run on one CPU core.

This commit is contained in:
TomAwezome 2021-05-24 05:16:29 -04:00
parent e54dd6544a
commit 6dbaae46f5
3 changed files with 10 additions and 1 deletions

View file

@ -954,7 +954,13 @@ U0 AIMove(GameState *state)
cj = MAlloc(sizeof(ChessJob));
cj->state = state;
cj->mv = ptr;
JobQueue(&AIMove1, cj, i % (mp_count - 1));
if (mp_count > 1)
JobQueue(&AIMove1, cj, i % (mp_count - 1));
else
{
AIMove1(cj);
Yield;
}
}
//Wait for finish

View file

@ -1,4 +1,7 @@
$WW,1$$FG,5$$TX+CX,"ChangeLog"$$FG$
$IV,1$----05/24/21 05:08:09----$IV,0$
* Fixed $LK+PU,"Chess",A="FF:::/Demo/Games/Chess.CC,JobQueue"$ crashing when only one CPU core available.
$IV,1$----05/24/21 04:24:00----$IV,0$
* Fixed Titanium crashing due to a broken sprite mesh.