From 252f68cb1a13b31a85bc43795b33a486b0d118f0 Mon Sep 17 00:00:00 2001 From: Dydzio Date: Wed, 12 Jul 2017 01:21:00 +0200 Subject: [PATCH] Fix black market behavior to match H3 --- client/windows/CTradeWindow.cpp | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/client/windows/CTradeWindow.cpp b/client/windows/CTradeWindow.cpp index b00d1a04f..87f7d15a5 100644 --- a/client/windows/CTradeWindow.cpp +++ b/client/windows/CTradeWindow.cpp @@ -693,12 +693,20 @@ CMarketplaceWindow::CMarketplaceWindow(const IMarket *Market, const CGHeroInstan } else { - switch (market->o->ID) + switch(market->o->ID) { - break; case Obj::BLACK_MARKET: title = CGI->generaltexth->allTexts[349]; - break; case Obj::TRADING_POST: title = CGI->generaltexth->allTexts[159]; - break; case Obj::TRADING_POST_SNOW: title = CGI->generaltexth->allTexts[159]; - break; default: title = market->o->getObjectName(); + case Obj::BLACK_MARKET: + title = CGI->generaltexth->allTexts[349]; + sliderNeeded = false; + break; + case Obj::TRADING_POST: + title = CGI->generaltexth->allTexts[159]; + break; + case Obj::TRADING_POST_SNOW: + title = CGI->generaltexth->allTexts[159]; + break; + default: + title = market->o->getObjectName(); } }