Commit 27e43abb authored by mercury233's avatar mercury233

fix BUTTON_CMD_ACTIVATE ShowCancelOrFinishButton

parent 03bd9b95
......@@ -306,11 +306,13 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
int step = mainGame->scrOption->isVisible() ? mainGame->scrOption->getPos() : 0;
selected_option = id - BUTTON_OPTION_0 + step;
SetResponseSelectedOption();
ShowCancelOrFinishButton(0);
break;
}
case BUTTON_OPTION_OK: {
soundManager.PlaySoundEffect(SOUND_BUTTON);
SetResponseSelectedOption();
ShowCancelOrFinishButton(0);
break;
}
case BUTTON_ANNUMBER_1:
......@@ -392,6 +394,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
} else {
command_card = clicked_card;
ShowSelectOption();
ShowCancelOrFinishButton(1);
}
} else {
selectable_cards.clear();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment