static void game_changed_state(game_ui *ui, const game_state *oldstate, const game_state *newstate) { #ifdef ANDROID if (newstate->completed && oldstate && ! oldstate->completed) android_completed(); #endif }
static void game_changed_state(game_ui *ui, game_state *oldstate, game_state *newstate) { /* Clear any selection */ if (ui->sel) { sfree(ui->sel); ui->sel = NULL; } #ifdef ANDROID if (newstate->completed && ! newstate->cheated && oldstate && ! oldstate->completed) android_completed(); #endif }