This commit is contained in:
Benau 2020-07-28 10:52:40 +08:00
parent 8b61197e21
commit 8fc6d6ea49

View File

@ -174,7 +174,7 @@ void Camera::setupCamera()
float(irr_driver->getActualScreenSize().Width) / m_viewport.getWidth() ,
float(irr_driver->getActualScreenSize().Height) / m_viewport.getHeight());
if (RaceManager::get()->getNumLocalPlayers() > 0)
if (RaceManager::get()->getNumLocalPlayers() > 1)
{
m_fov = DEGREE_TO_RAD * stk_config->m_camera_fov
[RaceManager::get()->getNumLocalPlayers() - 1];