mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-09 19:10:38 +00:00
(svn r19480) -Fix: Stop reducing the size of the vehicle list after selecting a vehicle with a long description.
This commit is contained in:
parent
7ef97932d9
commit
e27e5febb6
@ -1161,8 +1161,9 @@ struct BuildVehicleWindow : Window {
|
||||
needed_height = max(needed_height, text_end - (int)nwi->pos_y + WD_FRAMERECT_BOTTOM);
|
||||
}
|
||||
if (needed_height != this->details_height) { // Details window are not high enough, enlarge them.
|
||||
int resize = needed_height - this->details_height;
|
||||
this->details_height = needed_height;
|
||||
this->ReInit();
|
||||
this->ReInit(0, resize);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user