Commit 5ba1a34e authored by fallenstardust's avatar fallenstardust

fix disable chat

parent dc4ba6bc
......@@ -1896,6 +1896,8 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
}
mainGame->chkIgnore1->setChecked(mainGame->gameConf.chkIgnore1);
bool show = mainGame->is_building ? false : !mainGame->chkIgnore1->isChecked();
if (!mainGame->dInfo.isStarted)
show = false;
mainGame->wChat->setVisible(show);
if(!show)
mainGame->ClearChatMsg();
......
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