From aca0eeed863ce410a3b16e20f8e8ce5d8bcf2f94 Mon Sep 17 00:00:00 2001 From: ArseniyShestakov Date: Thu, 25 Dec 2014 22:03:19 +0300 Subject: [PATCH] Fix position of selected unit count in Freelancer's Guild This one fixes issue 2009 --- client/windows/CTradeWindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/windows/CTradeWindow.cpp b/client/windows/CTradeWindow.cpp index 128979df2..0cbcb528f 100644 --- a/client/windows/CTradeWindow.cpp +++ b/client/windows/CTradeWindow.cpp @@ -125,6 +125,9 @@ int CTradeWindow::CTradeableItem::getIndex() void CTradeWindow::CTradeableItem::showAll(SDL_Surface * to) { + CTradeWindow *mw = dynamic_cast(parent); + assert(mw); + Point posToBitmap; Point posToSubCenter; @@ -137,7 +140,8 @@ void CTradeWindow::CTradeableItem::showAll(SDL_Surface * to) case CREATURE_PLACEHOLDER: case CREATURE: posToSubCenter = Point(29, 76); - if(downSelection) + // Positing of unit count is different in Altar of Sacrifice and Freelancer's Guild + if(mw->mode == EMarketMode::CREATURE_EXP && downSelection) posToSubCenter.y += 5; break; case PLAYER: