Skip to content
This repository has been archived by the owner on Apr 6, 2018. It is now read-only.

Commit

Permalink
fix selectunselect
Browse files Browse the repository at this point in the history
  • Loading branch information
purerosefallen committed Mar 30, 2018
1 parent 5492d2c commit 6456f2c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion gframe/event_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2192,7 +2192,6 @@ void ClientField::CancelOrFinish() {
mainGame->HideElement(mainGame->wQuery, true);
break;
}
case MSG_SELECT_UNSELECT_CARD:
case MSG_SELECT_CARD: {
if(selected_cards.size() == 0) {
if(select_cancelable) {
Expand Down Expand Up @@ -2220,6 +2219,17 @@ void ClientField::CancelOrFinish() {
}
break;
}
case MSG_SELECT_UNSELECT_CARD: {
if (select_cancelable) {
DuelClient::SetResponseI(-1);
ShowCancelOrFinishButton(0);
if (mainGame->wCardSelect->isVisible())
mainGame->HideElement(mainGame->wCardSelect, true);
else
DuelClient::SendResponse();
}
break;
}
case MSG_SELECT_TRIBUTE: {
if(selected_cards.size() == 0) {
if(select_cancelable) {
Expand Down

0 comments on commit 6456f2c

Please sign in to comment.