Commit 0f849425 authored by VanillaSalt's avatar VanillaSalt

update

parent d7055ece
......@@ -341,14 +341,8 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
switch(event.MouseInput.Event) {
case irr::EMIE_LMOUSE_PRESSED_DOWN: {
position2d<s32> mouse_pos = position2d<s32>(event.MouseInput.X, event.MouseInput.Y);
if(mainGame->cbDBLFList->getElementFromPoint(mouse_pos)
|| mainGame->cbDBDecks->getElementFromPoint(mouse_pos)
|| mainGame->cbCardType->getElementFromPoint(mouse_pos)
|| mainGame->cbCardType2->getElementFromPoint(mouse_pos)
|| mainGame->cbLimit->getElementFromPoint(mouse_pos)
|| mainGame->cbAttribute->getElementFromPoint(mouse_pos)
|| mainGame->cbRace->getElementFromPoint(mouse_pos)
|| mainGame->cbSortType->getElementFromPoint(mouse_pos))
irr::gui::IGUIElement* root = mainGame->env->getRootGUIElement();
if(root->getElementFromPoint(mouse_pos) != root)
break;
if(mainGame->wCategories->isVisible() || mainGame->wQuery->isVisible())
break;
......
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