Toggle Resource Layer ON by default - how to?

Cybah

Emperor
Joined
Jun 22, 2007
Messages
1,481
Does anybody know? Doesnt matter if sdk/python/xml.

I just want to see the resources on the map by default.
 
I have an untested idea, which might work.

In CVGame.cpp, add the bold line.
Code:
void CvGame::setFinalInitialized(bool bNewValue)
{
	PROFILE_FUNC();

	int iI;

	if (isFinalInitialized() != bNewValue)
	{
		m_bFinalInitialized = bNewValue;

		if (isFinalInitialized())
		{
			updatePlotGroups();
			[B]gDLL->getEngineIFace()->toggleResourceLayer();[/B]
If that doesn't work, then add that line somewhere else. It doesn't look like there is a way to read the current setting, which mean the only option appears to be toggling the setting at startup in a location, where the code is only called once.
 
Back
Top Bottom