mirror of https://github.com/OpenTTD/OpenTTD
(svn r25805) -Fix[FS#5740]: Ensure the vehicle bar is high enough for the start/stop vehicle graphics (adf88).
parent
26dbdafeed
commit
999e76d305
|
@ -2490,6 +2490,10 @@ public:
|
|||
{
|
||||
const Vehicle *v = Vehicle::Get(this->window_number);
|
||||
switch (widget) {
|
||||
case WID_VV_START_STOP:
|
||||
size->height = max(size->height, max(GetSpriteSize(SPR_FLAG_VEH_STOPPED).height, GetSpriteSize(SPR_FLAG_VEH_RUNNING).height) + WD_IMGBTN_TOP + WD_IMGBTN_BOTTOM);
|
||||
break;
|
||||
|
||||
case WID_VV_FORCE_PROCEED:
|
||||
if (v->type != VEH_TRAIN) {
|
||||
size->height = 0;
|
||||
|
|
Loading…
Reference in New Issue