mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-30 18:09:09 +00:00
(svn r18090) -Fix: Only allow raising of WWT_* nested widgets.
This commit is contained in:
@@ -250,7 +250,8 @@ void Window::RaiseButtons(bool autoraise)
|
||||
}
|
||||
if (this->nested_array != NULL) {
|
||||
for (uint i = 0; i < this->nested_array_size; i++) {
|
||||
if (this->nested_array[i] != NULL && (!autoraise || (this->nested_array[i]->type & WWB_PUSHBUTTON)) && this->IsWidgetLowered(i)) {
|
||||
if (this->nested_array[i] != NULL && (this->nested_array[i]->type & ~WWB_PUSHBUTTON) < WWT_LAST &&
|
||||
(!autoraise || (this->nested_array[i]->type & WWB_PUSHBUTTON)) && this->IsWidgetLowered(i)) {
|
||||
this->RaiseWidget(i);
|
||||
this->SetWidgetDirty(i);
|
||||
}
|
||||
|
Reference in New Issue
Block a user