Move GUI<>::FallBackSprite and GUI<>::FallBackColor to CGUIColor::operator|| and CGUISpriteInstance::operator||.

Leaves only setting management in GUIutil.h.

Differential Revision: https://code.wildfiregames.com/D2185
This was SVN commit r22689.
This commit is contained in:
elexis
2019-08-18 15:17:49 +00:00
parent 4e55808cf9
commit 9985fcf5bd
9 changed files with 64 additions and 56 deletions
+1 -1
View File
@@ -353,7 +353,7 @@ void CGUI::Draw()
void CGUI::DrawSprite(const CGUISpriteInstance& Sprite, int CellID, const float& Z, const CRect& Rect, const CRect& UNUSED(Clipping))
{
// If the sprite doesn't exist (name == ""), don't bother drawing anything
if (Sprite.IsEmpty())
if (!Sprite)
return;
// TODO: Clipping?