Import infrastructure sharing patch
Strip trailing whitespace Remove a leftover line form settings.ini http://www.tt-forums.net/viewtopic.php?p=1008843#p1008843
This commit is contained in:

committed by
Jonathan G Rennison

parent
856896c36e
commit
ee791055f9
@@ -25,6 +25,8 @@
|
||||
#include "tilehighlight_func.h"
|
||||
#include "window_gui.h"
|
||||
#include "vehiclelist.h"
|
||||
#include "company_base.h"
|
||||
#include "infrastructure_func.h"
|
||||
#include "order_backup.h"
|
||||
#include "zoom_func.h"
|
||||
|
||||
@@ -655,7 +657,7 @@ struct DepotWindow : Window {
|
||||
|
||||
/* Setup disabled buttons. */
|
||||
TileIndex tile = this->window_number;
|
||||
this->SetWidgetsDisabledState(!IsTileOwner(tile, _local_company),
|
||||
this->SetWidgetsDisabledState(!Company::IsValidID(_local_company) || !IsInfraTileUsageAllowed(this->type, _local_company, tile),
|
||||
WID_D_STOP_ALL,
|
||||
WID_D_START_ALL,
|
||||
WID_D_SELL,
|
||||
|
Reference in New Issue
Block a user