Jump to content

Recommended Posts

  • 4 weeks later...
  • 1 month later...
  • 2 months later...
  • 1 year later...
void CPythonBackground::SetShadowTargetLevel(int iLevel)
{
	if (!m_pkMap)
		return;
	// fix
	//if (m_eShadowTargetLevel == iLevel)
	//	return;

	CMapOutdoor& rkMap = GetMapOutdoorRef();

	m_eShadowTargetLevel = iLevel;

	switch (m_eShadowTargetLevel)
	{
		case SHADOW_TARGET_NONE:
			rkMap.SetDrawShadow(false);
			rkMap.SetDrawCharacterShadow(false);
			break;
		case SHADOW_TARGET_GROUND:
		case SHADOW_TARGET_GROUND_AND_SOLO:
		case SHADOW_TARGET_ALL:
			rkMap.SetDrawShadow(true);
			rkMap.SetDrawCharacterShadow(true);
			break;
	}
}

Settings are saved without problems, however, when teleporting or re-entering the game, it does not "visually" update shadows, I reviewed all functions and I don't know if it is an error in my code, the solution was to remove the "m_eShadowTargetLevel == iLevel" check, so whenever teleporting or entering, it updates the visuals based on the saved settings normally.

Edited by Klaus
Fix
  • Good 1

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.