Skip to content

Commit

Permalink
Use log_deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
cx384 committed Dec 25, 2023
1 parent 298e702 commit d715b91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/script/common/c_content.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1966,13 +1966,13 @@ void read_hud_element(lua_State *L, HudElement *elem)
std::string deprecated_type_string;
if (getstringfield(L, 2, "hud_elem_type", deprecated_type_string)) {
if (has_type && deprecated_type_string != type_string) {
script_log_unique(L, "Ambiguous HUD element fields \"type\" and \"hud_elem_type\", "
"\"type\" will be used.", warningstream);
log_deprecated(L, "Ambiguous HUD element fields \"type\" and \"hud_elem_type\", "
"\"type\" will be used.", 1, true);
} else {
has_type = true;
type_string = deprecated_type_string;
script_log_unique(L, "Deprecated \"hud_elem_type\" field, use \"type\" instead.",
warningstream);
log_deprecated(L, "Deprecated \"hud_elem_type\" field, use \"type\" instead.",
1, true);
}
}

Expand Down

0 comments on commit d715b91

Please sign in to comment.