X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=parse.c;h=03cede25daa0ee3d82c718e27506998bc285b387;hb=8e95ded57bdbaa66ba1c2ec25c55a56d53bce943;hp=f90c16ce12fbf05fde39ce39e9840ffd8536c211;hpb=3aa02ccba93648f2decab899a5b9c42b6bcea9bf;p=ext%2Fsubsurface.git diff --git a/parse.c b/parse.c index f90c16c..03cede2 100644 --- a/parse.c +++ b/parse.c @@ -222,11 +222,10 @@ static void depth(char *buffer, void *_depth) union int_or_float val; switch (integer_or_float(buffer, &val)) { - /* Integer values are probably in feet */ + /* All values are probably in meters */ case INTEGER: - depth->mm = 304.8 * val.i; - break; - /* Float? Probably meters.. */ + val.fp = val.i; + /* fallthrough */ case FLOAT: depth->mm = val.fp * 1000; break;