Scaling - according to the world size

@AIAndy:

I just want to confirm that I'm doing this correctly, this code will properly adapt City Limits using the Adapt tag, right?

PHP:
	//ls612: Option to scale City Limits by Mapsize
	else if ( !bRawXMLValue && GC.getGameINLINE().isOption(GAMEOPTION_SCALE_CITY_LIMITS))
	{
		if (m_iCityLimit != 0)
		{
			int iCityLimit;
			CvPlayer* pPlayer = &GET_PLAYER(GC.getGameINLINE().getActivePlayer());
			int iAdaptID = GC.getInfoTypeForString("ADAPT_SCALE_CITY_LIMITS");
			
			iCityLimit = pPlayer->getGameObject()->adaptValueToGame(iAdaptID , m_iCityLimit);
			

			return iCityLimit;
		}
		else
		{
			return m_iCityLimit;
		}
	}
Looks good.
 
Back
Top Bottom