1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

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.
This commit is contained in:
ArseniyShestakov 2015-02-14 21:35:11 +03:00
parent 8beed60815
commit 9665c50f3f

View File

@ -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)