Skip to content

Commit

Permalink
fix: remove select to exit to avoid hang bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xtruan committed Jul 14, 2023
1 parent 42414c7 commit 53b9eb3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions views/flipchess_scene_1.c
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,10 @@ bool flipchess_scene_1_input(InputEvent* event, void* context) {
instance->view,
FlipChessScene1Model * model,
{
// if(model->paramExit == FlipChessStatusReturn) {
// instance->callback(FlipChessCustomEventScene1Back, instance->context);
// break;
// }
if(!flipchess_isPlayerTurn(model)) {
model->thinking = 1;
}
Expand All @@ -572,10 +576,6 @@ bool flipchess_scene_1_input(InputEvent* event, void* context) {
instance->view,
FlipChessScene1Model * model,
{
if(model->paramExit == FlipChessStatusReturn) {
instance->callback(FlipChessCustomEventScene1Back, instance->context);
break;
}
// first turn of round, probably player but could be AI
flipchess_turn(model);
flipchess_drawBoard(model);
Expand Down

0 comments on commit 53b9eb3

Please sign in to comment.