Commit 223682ce authored by mercury233's avatar mercury233 Committed by GitHub

fix

parent 1daa9a14
......@@ -676,6 +676,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
return false;
}
void DeckBuilder::GetHoveredCard() {
int pre_code = hovered_code;
hovered_pos = 0;
hovered_code = 0;
irr::gui::IGUIElement* root = mainGame->env->getRootGUIElement();
......@@ -683,7 +684,6 @@ void DeckBuilder::GetHoveredCard() {
return;
int x = mouse_pos.X;
int y = mouse_pos.Y;
int pre_code = hovered_code;
is_lastcard = 0;
if(x >= 314 && x <= 794) {
if(y >= 164 && y <= 435) {
......
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