From 9665c50f3f1f65895597e2365e8e39d5780b35f7 Mon Sep 17 00:00:00 2001 From: ArseniyShestakov Date: Sat, 14 Feb 2015 21:35:11 +0300 Subject: [PATCH] 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. --- client/windows/CQuestLog.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/client/windows/CQuestLog.cpp b/client/windows/CQuestLog.cpp index c61b8a07f..68580a7ce 100644 --- a/client/windows/CQuestLog.cpp +++ b/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)