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

summaryrefslogtreecommitdiff
path: root/source/game/StarProjectile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/game/StarProjectile.cpp')
-rw-r--r--source/game/StarProjectile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/game/StarProjectile.cpp b/source/game/StarProjectile.cpp
index 5a73e8b..d00b76b 100644
--- a/source/game/StarProjectile.cpp
+++ b/source/game/StarProjectile.cpp
@@ -379,7 +379,7 @@ void Projectile::renderLightSources(RenderCallback* renderCallback) {
if (renderable.is<LightSource>())
renderCallback->addLightSource(renderable.get<LightSource>());
}
- renderCallback->addLightSource({position(), m_config->lightColor.toRgbF(), m_config->pointLight, 0.0f, 0.0f, 0.0f});
+ renderCallback->addLightSource({position(), m_config->lightColor.toRgbF(), m_config->lightType, 0.0f, 0.0f, 0.0f});
}
Maybe<Json> Projectile::receiveMessage(ConnectionId sendingConnection, String const& message, JsonArray const& args) {
@@ -825,7 +825,7 @@ void Projectile::processAction(Json const& action) {
m_pendingRenderables.append(LightSource{
position(),
jsonToColor(parameters.get("color")).toRgbF(),
- parameters.getBool("pointLight", true),
+ (LightType)parameters.getBool("pointLight", true),
0.0f,
0.0f,
0.0f