Skip to content

Commit

Permalink
Removed unneeded log error on loading slabsets (dkfans#3497)
Browse files Browse the repository at this point in the history
Co-authored-by: Loobinex <[email protected]>
  • Loading branch information
PieterVdc and Loobinex authored Oct 2, 2024
1 parent d97906a commit ed59581
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions src/config_slabsets.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,19 +87,9 @@ TbBool load_slabset_config_file(const char *textname, const char *fname, unsigne
// Create sections
for (int slab_kind = 0; slab_kind < game.conf.slab_conf.slab_types_count; slab_kind++)
{

{
sprintf(key, "slab%d", slab_kind);
slb_section = value_dict_get(&file_root, key);
}
if (value_type(slb_section) != VALUE_DICT)
{
if ((flags & CnfLd_IgnoreErrors) == 0)
{
WARNMSG("Invalid section %d", slab_kind);
}
}
else
sprintf(key, "slab%d", slab_kind);
slb_section = value_dict_get(&file_root, key);
if (value_type(slb_section) == VALUE_DICT)
{
for (int slabstyle_no = 0; slabstyle_no < SLABSETS_PER_SLAB; slabstyle_no++)
{
Expand Down Expand Up @@ -153,7 +143,6 @@ TbBool load_slabset_config_file(const char *textname, const char *fname, unsigne
}
}
value_fini(&file_root);

return true;
}

Expand Down

0 comments on commit ed59581

Please sign in to comment.