is there any problem with this code
float fDistLight = -100.0f;
D3DXVECTOR3 v1;
D3DXVECTOR3 v2;
#ifdef __FLYFF_INITPAGE_EXT
if (g_pPlayer)
{
fDistLight = 20.0f + (g_pPlayer->m_fDistCamera - 4.0f) * 5.375f;
v1 = g_pPlayer->GetPos();
v2 = CWorld::m_pCamera->m_vPos;
}
else
{
if (g_WndMng.m_pTheme->m_bRenderTitleWorld)
{
fDistLight = 20.0f;
v2 = g_WndMng.m_pTheme->m_pTitleWorld->m_pCamera->GetPos();
v1 = { v2.x + 5, g_WndMng.m_pTheme->m_pTitleWorld->GetLandHeight(v2.x, v2.z), v2.z }; // i got error on this line
}
}
#else
v1 = g_pPlayer->GetPos();
v2 = CWorld::m_pCamera->m_vPos;;
#endif
because i got this error
D:\Files\Files\Official Source\_Common\World3D.cpp(1462): error C2059: syntax error : '{'
D:\Files\MyFutureFiles\Official Source\_Common\World3D.cpp(1462): error C2143: syntax error : missing ';' before '}'
D:\Files\MyFutureFiles\Official Source\_Common\World3D.cpp(1462): error C2059: syntax error : '{'
someone can help me im using vs 2008