diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2013-06-20 23:14:37 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2013-06-20 23:14:37 +0200 |
commit | 28b4e9a63450110978d60de80a9af2e901d49a97 (patch) | |
tree | 8a935f0350f695453353155d5efc561b13db9632 /src/object | |
parent | 4c33172e173b8f815a367f1e1c0fae06d9051df5 (diff) | |
download | colobot-28b4e9a63450110978d60de80a9af2e901d49a97.tar.gz colobot-28b4e9a63450110978d60de80a9af2e901d49a97.tar.bz2 colobot-28b4e9a63450110978d60de80a9af2e901d49a97.zip |
Fixed terrain light priorities (fix for #139)
* lights illuminating the terrain specified in scene file are now
always moved to front of light ordering
Diffstat (limited to 'src/object')
-rw-r--r-- | src/object/robotmain.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/object/robotmain.cpp b/src/object/robotmain.cpp index 23f5a28..7eaa3f6 100644 --- a/src/object/robotmain.cpp +++ b/src/object/robotmain.cpp @@ -4784,7 +4784,10 @@ void CRobotMain::CreateScene(bool soluce, bool fixScene, bool resetObject) type = OpTypeTerrain(line, "type", Gfx::ENG_OBJTYPE_NULL); if (type == Gfx::ENG_OBJTYPE_TERRAIN) + { + m_lightMan->SetLightPriority(lightRank, Gfx::LIGHT_PRI_HIGHEST); m_lightMan->SetLightIncludeType(lightRank, Gfx::ENG_OBJTYPE_TERRAIN); + } if (type == Gfx::ENG_OBJTYPE_QUARTZ) m_lightMan->SetLightIncludeType(lightRank, Gfx::ENG_OBJTYPE_QUARTZ); |