From fdba653773a1c25d064d52443fc667d674a201f5 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 17 Sep 2013 00:04:08 +0200 Subject: [PATCH] Replaced pi constants with different ones. --- src/Game.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Game.cpp b/src/Game.cpp index 7f11007..3e2a852 100644 --- a/src/Game.cpp +++ b/src/Game.cpp @@ -9,6 +9,8 @@ #include +#include + #include "generator/Generator.h" #include "sprites/Enemy.h" #include "sprites/Player.h" @@ -82,7 +84,7 @@ Game::initLight() { mPlayerAreaLight->m_radius = 250.0f; mPlayerAreaLight->m_size = 1.0f; mPlayerAreaLight->m_softSpreadAngle = 0; - mPlayerAreaLight->m_spreadAngle = 2.0f * M_PI; + mPlayerAreaLight->m_spreadAngle = 2.0f * ltbl::pi; mPlayerAreaLight->m_intensity = 1.1f; mPlayerAreaLight->m_bleed = 0; mPlayerAreaLight->m_color = lightColor; @@ -92,7 +94,7 @@ Game::initLight() { mPlayerDirectionLight->m_radius = 500.0f; mPlayerDirectionLight->m_size = 25.0f; - mPlayerDirectionLight->m_softSpreadAngle = 0.1f * M_PI; + mPlayerDirectionLight->m_softSpreadAngle = 0.1f * ltbl::pi; mPlayerDirectionLight->m_spreadAngle = degreeToRadian(config.get("light_cone_angle", 0.0f)); mPlayerDirectionLight->m_intensity = 5;