mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-18 01:42:38 +01:00
(svn r24424) [1.2] -Backport from trunk:
- Fix: Use the 'all vehicles' group for the autoreplace window from the vehicle list [FS#5239] (r24392) - Fix: Do not consider not finding a particular base set critical; just load a different one and display an in-game error later on [FS#5233] (r24388) - Fix: Make IsInDepot() functions behave consistent across vehicle types and add IsChainInDepot instead, if that is what shall be checked [FS#5188] (r24384) - Fix: Call Vehicle::IsStoppedInDepot only for the first vehicle in a chain (i.e. primary vehicle or free wagon) (r24382) - Fix: Do not resize the object GUI when selecting objects. Rather clip the object name (r24379)
This commit is contained in:
@@ -93,6 +93,12 @@ public:
|
||||
break;
|
||||
}
|
||||
|
||||
case WID_BO_OBJECT_NAME:
|
||||
case WID_BO_OBJECT_SIZE:
|
||||
/* We do not want the window to resize when selecting objects; better clip texts */
|
||||
size->width = 0;
|
||||
break;
|
||||
|
||||
case WID_BO_OBJECT_MATRIX: {
|
||||
/* Get the right amount of buttons based on the current spec. */
|
||||
const ObjectSpec *spec = ObjectClass::Get(_selected_object_class, _selected_object_index);
|
||||
|
||||
Reference in New Issue
Block a user