mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-08-15 14:43:32 -07:00
Warn only once per missing icon
Mods may dynamically request icons
(e.g., [icon=\"emblem_${civ}\"], [icon=\"icon_${res}\"]) that
don't exist when another mod introduced the new civ or resource
but hasn't added that icon.
This results in excessive error log spam during normal gameplay.
This commit is contained in:
parent
7ed3e6b059
commit
30b4ea8fca
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ void CGUIString::GenerateTextCall(const CGUI& pGUI, SFeedback& Feedback, CStrInt
|
|||
if (!pGUI.HasIcon(path))
|
||||
{
|
||||
if (pObject)
|
||||
LOGERROR("Trying to use an icon, imgleft or imgright-tag with an undefined icon (\"%s\").", path.c_str());
|
||||
ONCE_EACH(path, LOGWARNING("Trying to use an icon, imgleft or imgright-tag with an undefined icon (\"%s\").", key));
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue