diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-10-03 00:29:59 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-10-03 00:29:59 +0200 |
commit | 858b1e35aed8b3a37f138138910327f7259d1251 (patch) | |
tree | f9dee07965757f7e2778965e47764c29e298b432 /src/object/task/taskshield.cpp | |
parent | 3f7f013168e62693601ab57108d329ffaa924439 (diff) | |
download | colobot-858b1e35aed8b3a37f138138910327f7259d1251.tar.gz colobot-858b1e35aed8b3a37f138138910327f7259d1251.tar.bz2 colobot-858b1e35aed8b3a37f138138910327f7259d1251.zip |
Spot light angle fix
Diffstat (limited to 'src/object/task/taskshield.cpp')
-rw-r--r-- | src/object/task/taskshield.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object/task/taskshield.cpp b/src/object/task/taskshield.cpp index 682bcb1..93afd62 100644 --- a/src/object/task/taskshield.cpp +++ b/src/object/task/taskshield.cpp @@ -499,7 +499,7 @@ bool CTaskShield::CreateLight(Math::Vector pos) light.attenuation0 = 1.0f; light.attenuation1 = 0.0f; light.attenuation2 = 0.0f; - light.spotAngle = 90; + light.spotAngle = 90.0f*Math::PI/180.0f; m_effectLight = m_lightMan->CreateLight(); if ( m_effectLight == -1 ) return false; |