mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[gamecode] Use full precision for floating point values
This commit is contained in:
parent
6dfe37635d
commit
087cee06be
1 changed files with 4 additions and 4 deletions
|
@ -998,7 +998,7 @@ pr_debug_float_view (qfot_type_t *type, pr_type_t *value, void *_data)
|
||||||
&& value->uinteger_var != 0x80000000) {
|
&& value->uinteger_var != 0x80000000) {
|
||||||
dasprintf (dstr, "<%08x>", value->integer_var);
|
dasprintf (dstr, "<%08x>", value->integer_var);
|
||||||
} else {
|
} else {
|
||||||
dasprintf (dstr, "%g", value->float_var);
|
dasprintf (dstr, "%.9g", value->float_var);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1008,7 +1008,7 @@ pr_debug_vector_view (qfot_type_t *type, pr_type_t *value, void *_data)
|
||||||
__auto_type data = (pr_debug_data_t *) _data;
|
__auto_type data = (pr_debug_data_t *) _data;
|
||||||
dstring_t *dstr = data->dstr;
|
dstring_t *dstr = data->dstr;
|
||||||
|
|
||||||
dasprintf (dstr, "'%g %g %g'",
|
dasprintf (dstr, "'%.9g %.9g %.9g'",
|
||||||
value->vector_var[0], value->vector_var[1],
|
value->vector_var[0], value->vector_var[1],
|
||||||
value->vector_var[2]);
|
value->vector_var[2]);
|
||||||
}
|
}
|
||||||
|
@ -1085,7 +1085,7 @@ pr_debug_quat_view (qfot_type_t *type, pr_type_t *value, void *_data)
|
||||||
__auto_type data = (pr_debug_data_t *) _data;
|
__auto_type data = (pr_debug_data_t *) _data;
|
||||||
dstring_t *dstr = data->dstr;
|
dstring_t *dstr = data->dstr;
|
||||||
|
|
||||||
dasprintf (dstr, "'%g %g %g %g'",
|
dasprintf (dstr, "'%.9g %.9g %.9g %.9g'",
|
||||||
value->vector_var[0], value->vector_var[1],
|
value->vector_var[0], value->vector_var[1],
|
||||||
value->vector_var[2], value->vector_var[3]);
|
value->vector_var[2], value->vector_var[3]);
|
||||||
}
|
}
|
||||||
|
@ -1123,7 +1123,7 @@ pr_debug_double_view (qfot_type_t *type, pr_type_t *value, void *_data)
|
||||||
__auto_type data = (pr_debug_data_t *) _data;
|
__auto_type data = (pr_debug_data_t *) _data;
|
||||||
dstring_t *dstr = data->dstr;
|
dstring_t *dstr = data->dstr;
|
||||||
|
|
||||||
dasprintf (dstr, "%g", *(double *)value);
|
dasprintf (dstr, "%.17g", *(double *)value);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue