From f101c9e36686241fe6bac8822ba97eadc259e8b4 Mon Sep 17 00:00:00 2001 From: Deve Date: Tue, 6 Feb 2018 23:16:28 +0100 Subject: [PATCH] Fixed android compilation --- src/config/stk_config.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/config/stk_config.cpp b/src/config/stk_config.cpp index acf29279c..c022ce3e5 100644 --- a/src/config/stk_config.cpp +++ b/src/config/stk_config.cpp @@ -269,13 +269,14 @@ void STKConfig::getAllData(const XMLNode * root) if (const XMLNode *camera = root->getNode("camera")) { - for (int i = 0; i < 4; i++) + camera->get("fov-1", &m_camera_fov[0]); + camera->get("fov-2", &m_camera_fov[1]); + camera->get("fov-3", &m_camera_fov[2]); + camera->get("fov-4", &m_camera_fov[3]); + + for (unsigned int i = 4; i < MAX_PLAYER_COUNT; i++) { - camera->get("fov-" + std::to_string(i + 1), &m_camera_fov[i]); - } - for (int i = 4; i < MAX_PLAYER_COUNT; i++) - { - camera->get("fov-" + std::to_string(4), &m_camera_fov[i]); + camera->get("fov-4", &m_camera_fov[i]); } camera->get("cutscene-fov", &m_cutscene_fov); }