2
0
Эх сурвалжийг харах

Quest Log: clanup code that is not needed anymore

As far as I understand once object capturing used it's no longer needed to manually call Show.
Currently CIntObject::show and CIntObject::showAll automatically call it for all children.
ArseniyShestakov 10 жил өмнө
parent
commit
9665c50f3f

+ 0 - 6
client/windows/CQuestLog.cpp

@@ -169,10 +169,6 @@ void CQuestLog::init()
 void CQuestLog::showAll(SDL_Surface * to)
 {
 	CWindowObject::showAll (to);
-	for (auto label : labels)
-	{
-		label->show(to); //shows only if active
-	}
 	if (labels.size() && labels[questIndex]->active)
 	{
 		Rect rect = Rect::around(labels[questIndex]->pos);
@@ -180,8 +176,6 @@ void CQuestLog::showAll(SDL_Surface * to)
 		rect.w += 2;
 		CSDL_Ext::drawBorder(to, rect, int3(Colors::METALLIC_GOLD.r, Colors::METALLIC_GOLD.g, Colors::METALLIC_GOLD.b));
 	}
-	description->show(to);
-	minimap->show(to);
 }
 
 void CQuestLog::recreateQuestList (int newpos)