From 6456f2cb8c4984b5ebbfdcae63cd0fdbcbcdcee2 Mon Sep 17 00:00:00 2001 From: purerosefallen <78877@qq.com> Date: Fri, 30 Mar 2018 20:41:19 +0800 Subject: [PATCH] fix selectunselect --- gframe/event_handler.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gframe/event_handler.cpp b/gframe/event_handler.cpp index 09780b4b..869633bd 100644 --- a/gframe/event_handler.cpp +++ b/gframe/event_handler.cpp @@ -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) { @@ -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) {