Merge branch 'master' into jgrpp
# Conflicts: # cmake/CompileFlags.cmake # src/cargomonitor.cpp # src/core/CMakeLists.txt # src/economy.cpp # src/landscape.cpp # src/linkgraph/flowmapper.cpp # src/linkgraph/linkgraph_gui.cpp # src/linkgraph/linkgraphschedule.cpp # src/misc_gui.cpp # src/newgrf_generic.cpp # src/newgrf_storage.cpp # src/rail_gui.cpp # src/saveload/afterload.cpp # src/saveload/station_sl.cpp # src/script/script_gui.cpp # src/station_cmd.cpp # src/station_gui.cpp # src/string_func.h # src/terraform_cmd.cpp
This commit is contained in:
@@ -795,7 +795,7 @@ public:
|
||||
SetDParam(2, STR_VEHICLE_INFO_POWER_WEIGHT_RATIO);
|
||||
SetDParam(3, (100 * tmp->power) / std::max<uint>(1, tmp->full_weight));
|
||||
SetDParam(4, GetRailTypeInfo(tmp->railtype)->acceleration_type == 2 ? STR_EMPTY : STR_VEHICLE_INFO_TE_WEIGHT_RATIO);
|
||||
SetDParam(5, (tmp->max_te / 10) / std::max<uint>(1, tmp->full_weight));
|
||||
SetDParam(5, (100 * tmp->max_te) / std::max<uint>(1, tmp->full_weight));
|
||||
} else {
|
||||
SetDParam(1, STR_EMPTY);
|
||||
}
|
||||
|
Reference in New Issue
Block a user