Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/base/StarCellularLighting.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/base/StarCellularLighting.cpp')
-rw-r--r--source/base/StarCellularLighting.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/base/StarCellularLighting.cpp b/source/base/StarCellularLighting.cpp
index 49c5676..e4fe8dd 100644
--- a/source/base/StarCellularLighting.cpp
+++ b/source/base/StarCellularLighting.cpp
@@ -2,8 +2,13 @@
namespace Star {
-CellularLightingCalculator::CellularLightingCalculator(bool monochrome) {
- setMonochrome(monochrome);
+CellularLightingCalculator::CellularLightingCalculator(bool monochrome)
+ : m_monochrome(monochrome)
+{
+ if (monochrome)
+ m_lightArray.setRight(ScalarCellularLightArray());
+ else
+ m_lightArray.setLeft(ColoredCellularLightArray());
}
void CellularLightingCalculator::setMonochrome(bool monochrome) {