Added kN to unit conversion.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3317 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 03d56f38c7e1368a40e2bc2e4f5e1fc995f8ac5a Former-commit-id: f079edb9c548fa3121b2cf3362e34bb1af058415
This commit is contained in:
parent
2388da5346
commit
de9ffe455c
1 changed files with 2 additions and 1 deletions
|
@ -1914,7 +1914,8 @@ evalUnit (char *unit, tdble *dest, int invert)
|
|||
coeff = 24*3600.0; /* s */
|
||||
} else if ((strcmp(unit, "slug") == 0) || (strcmp(unit, "slugs") == 0)) {
|
||||
coeff = 14.59484546f; /* kg */
|
||||
}
|
||||
} else if (strcmp(unit, "kN") == 0) {
|
||||
coeff = 1000.0f; /* N */
|
||||
|
||||
if (invert) {
|
||||
*dest /= coeff;
|
||||
|
|
Loading…
Reference in a new issue