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

summaryrefslogtreecommitdiff
path: root/source/game/items/StarTools.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-03-26 07:31:33 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2024-03-26 07:31:33 +1100
commitc484fab32dcac655164f082805d1d55d1d058f2f (patch)
tree9eeabdaee723a88bbebdd77d41d1bb93ee3def83 /source/game/items/StarTools.cpp
parent77d7f8eb81af21dd231f6384951fc2c14c149d5c (diff)
experiment: auto-conversion of object spread lights to hybrid spread/point lights
Diffstat (limited to 'source/game/items/StarTools.cpp')
-rw-r--r--source/game/items/StarTools.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/game/items/StarTools.cpp b/source/game/items/StarTools.cpp
index 0f2781a..cde44b8 100644
--- a/source/game/items/StarTools.cpp
+++ b/source/game/items/StarTools.cpp
@@ -239,7 +239,7 @@ List<LightSource> Flashlight::lightSources() const {
float angle = world()->geometry().diff(owner()->aimPosition(), owner()->position()).angle();
LightSource lightSource;
- lightSource.pointLight = true;
+ lightSource.type = LightType::Point;
lightSource.position = owner()->position() + owner()->handPosition(hand(), (m_lightPosition - m_handPosition) / TilePixels);
lightSource.color = m_lightColor.toRgbF();
lightSource.pointBeam = m_beamWidth;