Sfoglia il codice sorgente

Fix position of selected unit count in Freelancer's Guild

This one fixes issue 2009
ArseniyShestakov 10 anni fa
parent
commit
aca0eeed86
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      client/windows/CTradeWindow.cpp

+ 5 - 1
client/windows/CTradeWindow.cpp

@@ -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: