mirror of https://github.com/OpenTTD/OpenTTD
Compare commits
4 Commits
20f938eefe
...
620c2297a6
Author | SHA1 | Date |
---|---|---|
|
620c2297a6 | |
|
7eb042feac | |
|
4c7ea26238 | |
|
e46456d605 |
|
@ -634,8 +634,11 @@ STR_GRAPH_CARGO_TOOLTIP_DISABLE_ALL :{BLACK}Display
|
|||
STR_GRAPH_CARGO_PAYMENT_TOGGLE_CARGO :{BLACK}Toggle graph of this cargo type
|
||||
STR_GRAPH_CARGO_PAYMENT_CARGO :{TINY_FONT}{BLACK}{STRING}
|
||||
|
||||
STR_GRAPH_INDUSTRY_CAPTION :{WHITE}{INDUSTRY} - Cargo History
|
||||
STR_GRAPH_INDUSTRY_RANGE_PRODUCED :Produced
|
||||
STR_GRAPH_INDUSTRY_RANGE_TRANSPORTED :Transported
|
||||
STR_GRAPH_INDUSTRY_RANGE_DELIVERED :Delivered
|
||||
STR_GRAPH_INDUSTRY_RANGE_WAITING :Waiting
|
||||
|
||||
STR_GRAPH_PERFORMANCE_DETAIL_TOOLTIP :{BLACK}Show detailed performance ratings
|
||||
|
||||
|
@ -4023,6 +4026,8 @@ STR_INDUSTRY_VIEW_PRODUCTION_LAST_MONTH_TITLE :{BLACK}Producti
|
|||
STR_INDUSTRY_VIEW_PRODUCTION_LAST_MINUTE_TITLE :{BLACK}Production last minute:
|
||||
STR_INDUSTRY_VIEW_TRANSPORTED :{YELLOW}{CARGO_LONG}{STRING}{BLACK} ({COMMA}% transported)
|
||||
STR_INDUSTRY_VIEW_LOCATION_TOOLTIP :{BLACK}Center the main view on industry location. Ctrl+Click to open a new viewport on industry location
|
||||
STR_INDUSTRY_VIEW_CARGO_GRAPH :{BLACK}Cargo Graph
|
||||
STR_INDUSTRY_VIEW_CARGO_GRAPH_TOOLTIP :{BLACK}Shows the graph of industry cargo history
|
||||
STR_INDUSTRY_VIEW_PRODUCTION_LEVEL :{BLACK}Production level: {YELLOW}{COMMA}%
|
||||
STR_INDUSTRY_VIEW_INDUSTRY_ANNOUNCED_CLOSURE :{YELLOW}The industry has announced imminent closure!
|
||||
|
||||
|
|
|
@ -1982,6 +1982,8 @@ static bool IsWholeTrainInsideDepot(const Train *v)
|
|||
*/
|
||||
void ReverseTrainDirection(Train *v)
|
||||
{
|
||||
//DEBUG(driver, 1, "Reversing train %d on tile %d", v->index, v->tile);
|
||||
|
||||
if (IsRailDepotTile(v->tile)) {
|
||||
if (IsWholeTrainInsideDepot(v)) return;
|
||||
InvalidateWindowData(WC_VEHICLE_DEPOT, v->tile);
|
||||
|
@ -3875,6 +3877,9 @@ static TileIndex TrainApproachingCrossingTile(const Train *v)
|
|||
*/
|
||||
static bool TrainCheckIfLineEnds(Train *v, bool reverse)
|
||||
{
|
||||
|
||||
if (v->flags.Test(VehicleRailFlag::Reversing)) return false;
|
||||
|
||||
/* First, handle broken down train */
|
||||
|
||||
int t = v->breakdown_ctr;
|
||||
|
@ -3924,6 +3929,7 @@ static bool TrainCheckIfLineEnds(Train *v, bool reverse)
|
|||
}
|
||||
|
||||
|
||||
|
||||
static bool TrainLocoHandler(Train *v, bool mode)
|
||||
{
|
||||
/* train has crashed? */
|
||||
|
|
Loading…
Reference in New Issue