Fix clients overlay

This commit is contained in:
dP
2023-03-13 22:40:13 +04:00
parent e4a84ec76f
commit b42ec3c57b

View File

@@ -129,9 +129,9 @@ public:
if (_iconsole_mode != ICONSOLE_CLOSED) return;
if (!_networking) return;
if (!_settings_client.gui.cm_show_client_overlay) return;
if (this->box.width <= 0 || this->box.height <= 0) return;
this->UpdateSize();
if (this->box.width <= 0 || this->box.height <= 0) return;
if (!was_drawn ||
this->box.x != this->backup_box.x ||