Question about the "TradeConnection* pConnection" struct

Joined
Jul 31, 2014
Messages
836
Hi all!

Is it possible to pull the data of the origin city from a TradeConnection* pConnection?
 
Nevermind, I found it :blush: (That was fast, I feel like an idiot for asking now :lol:).

For those interested,
Code:
	iX = kTradeConnection.m_iOriginX;
	iY = kTradeConnection.m_iOriginY;

	CvPlot* pPlot = GC.getMap().plot(iX, iY);
        CvCity* pCity = pPlot->getPlotCity();
 
Top Bottom