mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-22 18:49:40 +00:00
This commit is contained in:
committed by
Peter Nelson
parent
aa4b5ca747
commit
88a52b60f8
+4
-2
@@ -357,9 +357,11 @@ void PickerWindow::DrawWidget(const Rect &r, WidgetID widget) const
|
||||
break;
|
||||
}
|
||||
|
||||
case WID_PW_TYPE_NAME:
|
||||
DrawString(r, this->callbacks.GetTypeName(this->callbacks.GetSelectedClass(), this->callbacks.GetSelectedType()), TC_GOLD, SA_CENTER);
|
||||
case WID_PW_TYPE_NAME: {
|
||||
StringID str = this->callbacks.GetTypeName(this->callbacks.GetSelectedClass(), this->callbacks.GetSelectedType());
|
||||
if (str != INVALID_STRING_ID) DrawString(r, str, TC_GOLD, SA_CENTER);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1782,7 +1782,7 @@ struct BuildHouseWindow : public PickerWindow {
|
||||
PickerInvalidations pi(data);
|
||||
if (pi.Test(PickerInvalidation::Position)) {
|
||||
UpdateSelectSize(spec);
|
||||
this->house_info = GetHouseInformation(spec);
|
||||
this->house_info = spec->enabled ? GetHouseInformation(spec) : "";
|
||||
}
|
||||
|
||||
/* If house spec already has the protected flag, handle it automatically and disable the buttons. */
|
||||
|
||||
Reference in New Issue
Block a user