1
0
Fork 0

Compare commits

...

3 Commits

Author SHA1 Message Date
Kuhnovic 4cf6cc21d7
Merge db56a4f723 into c69fc76395 2025-07-21 20:00:16 +00:00
Peter Nelson c69fc76395
Codefix: Rail type bridge offset is not a SpriteID. (#14471) 2025-07-21 20:00:04 +00:00
Koen Bussemaker db56a4f723 Change: Close error message window on left click 2025-03-16 16:34:28 +01:00
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -184,7 +184,7 @@ public:
/** /**
* Bridge offset * Bridge offset
*/ */
SpriteID bridge_offset; uint8_t bridge_offset;
/** /**
* Original railtype number to use when drawing non-newgrf railtypes, or when drawing stations. * Original railtype number to use when drawing non-newgrf railtypes, or when drawing stations.