mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Fix position of selected unit count in Freelancer's Guild
This one fixes issue 2009
This commit is contained in:
parent
f71cfdf173
commit
aca0eeed86
@ -125,6 +125,9 @@ int CTradeWindow::CTradeableItem::getIndex()
|
||||
|
||||
void CTradeWindow::CTradeableItem::showAll(SDL_Surface * to)
|
||||
{
|
||||
CTradeWindow *mw = dynamic_cast<CTradeWindow *>(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:
|
||||
|
Loading…
Reference in New Issue
Block a user