Commit 9ee60b1a authored by fallenstardust's avatar fallenstardust

防止故意快速频繁点击而闪退

parent 87ecf9bf
......@@ -1116,8 +1116,10 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
s32 y = event.MouseInput.Y;
irr::core::position2di pos(x, y);
if (x < (200 * mainGame->xScale) && y < (270 * mainGame->yScale)) {
mainGame->gMutex.lock();
mainGame->textFont->setTransparency(true);
mainGame->ClearChatMsg();
mainGame->gMutex.unlock();
break;
}//touch the pic of detail to refresh textfonts
is_starting_dragging = false;
......
......@@ -1053,8 +1053,10 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
hovered_location = 0;
irr::core::position2di pos(x, y);
if (x < (200 * mainGame->xScale) && y < (270 * mainGame->yScale)) {
mainGame->gMutex.lock();
mainGame->textFont->setTransparency(true);
mainGame->ClearChatMsg();
mainGame->gMutex.unlock();
break;
}//touch the pic of detail to refresh textfonts
if(x < 300 * mainGame->xScale)
......
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