mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +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:
@@ -169,10 +169,6 @@ void CQuestLog::init()
|
|||||||
void CQuestLog::showAll(SDL_Surface * to)
|
void CQuestLog::showAll(SDL_Surface * to)
|
||||||
{
|
{
|
||||||
CWindowObject::showAll (to);
|
CWindowObject::showAll (to);
|
||||||
for (auto label : labels)
|
|
||||||
{
|
|
||||||
label->show(to); //shows only if active
|
|
||||||
}
|
|
||||||
if (labels.size() && labels[questIndex]->active)
|
if (labels.size() && labels[questIndex]->active)
|
||||||
{
|
{
|
||||||
Rect rect = Rect::around(labels[questIndex]->pos);
|
Rect rect = Rect::around(labels[questIndex]->pos);
|
||||||
@@ -180,8 +176,6 @@ void CQuestLog::showAll(SDL_Surface * to)
|
|||||||
rect.w += 2;
|
rect.w += 2;
|
||||||
CSDL_Ext::drawBorder(to, rect, int3(Colors::METALLIC_GOLD.r, Colors::METALLIC_GOLD.g, Colors::METALLIC_GOLD.b));
|
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)
|
void CQuestLog::recreateQuestList (int newpos)
|
||||||
|
|||||||
Reference in New Issue
Block a user