Merge branch 'master' into jgrpp
# Conflicts: # src/game/game_gui.cpp # src/graph_gui.cpp # src/linkgraph/linkgraph_gui.h # src/newgrf.cpp # src/order_gui.cpp # src/saveload/engine_sl.cpp # src/saveload/saveload.h # src/script/api/script_text.cpp # src/script/script_gui.cpp # src/settings_table.cpp # src/strings.cpp # src/table/settings/economy_settings.ini # src/table/settings/locale_settings.ini # src/timetable_gui.cpp
This commit is contained in:
@@ -169,7 +169,7 @@ uint GetTotalCapacityOfArticulatedParts(EngineID engine)
|
||||
static StringID GetTrainEngineInfoString(const Engine *e)
|
||||
{
|
||||
SetDParam(0, e->GetCost());
|
||||
SetDParam(2, e->GetDisplayMaxSpeed());
|
||||
SetDParam(2, PackVelocity(e->GetDisplayMaxSpeed(), e->type));
|
||||
SetDParam(3, e->GetPower());
|
||||
SetDParam(1, e->GetDisplayWeight());
|
||||
SetDParam(7, e->GetDisplayMaxTractiveEffort());
|
||||
@@ -195,7 +195,7 @@ static StringID GetAircraftEngineInfoString(const Engine *e)
|
||||
|
||||
uint i = 0;
|
||||
SetDParam(i++, e->GetCost());
|
||||
SetDParam(i++, e->GetDisplayMaxSpeed());
|
||||
SetDParam(i++, PackVelocity(e->GetDisplayMaxSpeed(), e->type));
|
||||
SetDParam(i++, e->GetAircraftTypeText());
|
||||
if (range > 0) SetDParam(i++, range);
|
||||
SetDParam(i++, cargo);
|
||||
@@ -216,7 +216,7 @@ static StringID GetRoadVehEngineInfoString(const Engine *e)
|
||||
{
|
||||
if (_settings_game.vehicle.roadveh_acceleration_model == AM_ORIGINAL) {
|
||||
SetDParam(0, e->GetCost());
|
||||
SetDParam(1, e->GetDisplayMaxSpeed());
|
||||
SetDParam(1, PackVelocity(e->GetDisplayMaxSpeed(), e->type));
|
||||
uint capacity = GetTotalCapacityOfArticulatedParts(e->index);
|
||||
if (capacity != 0) {
|
||||
SetDParam(2, e->GetDefaultCargoType());
|
||||
@@ -228,7 +228,7 @@ static StringID GetRoadVehEngineInfoString(const Engine *e)
|
||||
return STR_ENGINE_PREVIEW_COST_MAX_SPEED_CAP_RUNCOST;
|
||||
} else {
|
||||
SetDParam(0, e->GetCost());
|
||||
SetDParam(2, e->GetDisplayMaxSpeed());
|
||||
SetDParam(2, PackVelocity(e->GetDisplayMaxSpeed(), e->type));
|
||||
SetDParam(3, e->GetPower());
|
||||
SetDParam(1, e->GetDisplayWeight());
|
||||
SetDParam(7, e->GetDisplayMaxTractiveEffort());
|
||||
@@ -249,7 +249,7 @@ static StringID GetRoadVehEngineInfoString(const Engine *e)
|
||||
static StringID GetShipEngineInfoString(const Engine *e)
|
||||
{
|
||||
SetDParam(0, e->GetCost());
|
||||
SetDParam(1, e->GetDisplayMaxSpeed());
|
||||
SetDParam(1, PackVelocity(e->GetDisplayMaxSpeed(), e->type));
|
||||
SetDParam(2, e->GetDefaultCargoType());
|
||||
SetDParam(3, e->GetDisplayDefaultCapacity());
|
||||
SetDParam(4, e->GetDisplayRunningCost());
|
||||
|
Reference in New Issue
Block a user