Skip to content
Snippets Groups Projects
Commit 3e8a12d8 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Do not set a default value for Stars:birth_time

parent 9f080da5
No related branches found
No related tags found
No related merge requests found
......@@ -222,8 +222,10 @@ INLINE static void stars_props_init(struct stars_props *sp,
parser_get_opt_param_int(params, "Stars:overwrite_birth_time", 0);
/* Read birth time to set all stars in ICs */
sp->spart_first_init_birth_time =
parser_get_opt_param_float(params, "Stars:birth_time", -1.f);
if (sp->overwrite_birth_time) {
sp->spart_first_init_birth_time =
parser_get_param_float(params, "Stars:birth_time");
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment