Commit 628821ba authored by edo9300's avatar edo9300 Committed by GitHub

Removed outrageous dialoque box

parent 0adf26be
...@@ -1319,14 +1319,6 @@ bool ClientField::OnEvent(const irr::SEvent& event) { ...@@ -1319,14 +1319,6 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
} else { } else {
select_ready = true; select_ready = true;
ShowCancelOrFinishButton(2); ShowCancelOrFinishButton(2);
if(mainGame->dInfo.curMsg == MSG_SELECT_TRIBUTE) {
wchar_t wbuf[256], *pwbuf = wbuf;
BufferIO::CopyWStrRef(dataManager.GetSysString(209), pwbuf, 256);
*pwbuf++ = L'\n';
BufferIO::CopyWStrRef(dataManager.GetSysString(210), pwbuf, 256);
mainGame->stQMessage->setText(wbuf);
mainGame->PopupElement(mainGame->wQuery);
}
} }
} else { } else {
select_ready = false; select_ready = false;
...@@ -2298,6 +2290,14 @@ void ClientField::CancelOrFinish() { ...@@ -2298,6 +2290,14 @@ void ClientField::CancelOrFinish() {
mainGame->HideElement(mainGame->wQuery, true); mainGame->HideElement(mainGame->wQuery, true);
break; break;
} }
if(select_ready) {
SetResponseSelectedCards();
ShowCancelOrFinishButton(0);
if(mainGame->wCardSelect->isVisible())
mainGame->HideElement(mainGame->wCardSelect, true);
else
DuelClient::SendResponse();
}
break; break;
} }
case MSG_SELECT_SUM: { case MSG_SELECT_SUM: {
......
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