Change: Units-system can convert from N to kN, don't preconvert.
This allows force to passed as is and avoid premature rounding. The AI function "GetMaxTractiveEffort" still needs to return kN to avoid breaking the API.
This commit is contained in:

committed by
Michael Lutz

parent
e2f583a34f
commit
bf9caa425b
@@ -748,9 +748,9 @@ static const UnitsLong _units_volume[] = {
|
||||
|
||||
/** Unit conversions for force. */
|
||||
static const Units _units_force[] = {
|
||||
{ { 224.809 }, STR_UNITS_FORCE_IMPERIAL, 0 },
|
||||
{ { 101.972 }, STR_UNITS_FORCE_METRIC, 0 },
|
||||
{ { 1.0 }, STR_UNITS_FORCE_SI, 0 },
|
||||
{ { 0.224809 }, STR_UNITS_FORCE_IMPERIAL, 0 },
|
||||
{ { 0.101972 }, STR_UNITS_FORCE_METRIC, 0 },
|
||||
{ { 0.001 }, STR_UNITS_FORCE_SI, 0 },
|
||||
};
|
||||
|
||||
/** Unit conversions for height. */
|
||||
|
Reference in New Issue
Block a user