mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2025-04-18 05:38:36 +01:00
Fix Chess crashing when run on one CPU core.
This commit is contained in:
parent
e54dd6544a
commit
6dbaae46f5
3 changed files with 10 additions and 1 deletions
Binary file not shown.
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue