mirror of https://github.com/OpenTTD/OpenTTD
Compare commits
2 Commits
4f89e5601b
...
a8ce6abfb2
Author | SHA1 | Date |
---|---|---|
|
a8ce6abfb2 | |
|
db56a4f723 |
|
@ -225,7 +225,7 @@ public:
|
||||||
void OnMouseLoop() override
|
void OnMouseLoop() override
|
||||||
{
|
{
|
||||||
/* Disallow closing the window too easily, if timeout is disabled */
|
/* Disallow closing the window too easily, if timeout is disabled */
|
||||||
if (_right_button_down && !this->is_critical) this->Close();
|
if ((_right_button_down || _left_button_down) && !this->is_critical) this->Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Close([[maybe_unused]] int data = 0) override
|
void Close([[maybe_unused]] int data = 0) override
|
||||||
|
|
Loading…
Reference in New Issue