summaryrefslogtreecommitdiffhomepage
path: root/editor/imgui.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-06-10 18:13:56 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-06-10 18:13:56 +0200
commit1baf69083d740f50eba0de13b366977a07dacbf3 (patch)
treee397e568d972788a8a339432709e2c53be12bd67 /editor/imgui.cpp
parent2204f113710319ae6d735e3d511dd1d75d42a07d (diff)
wip
Diffstat (limited to 'editor/imgui.cpp')
-rw-r--r--editor/imgui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/imgui.cpp b/editor/imgui.cpp
index b953a247..c48dbed1 100644
--- a/editor/imgui.cpp
+++ b/editor/imgui.cpp
@@ -218,12 +218,12 @@ void app::draw_lightmap_test()
if (e_ && ImGui::Begin("Lightmap", &is_open, flags))
{
- constexpr auto chunk_size = TILE_SIZE2.sum()/2;
+ constexpr auto tile_size = TILE_SIZE2.sum()/2;
fm_assert(e_->type() == entity_type::light);
const auto& li = static_cast<const light&>(*e_);
light_s L {
.center = Vector2(li.coord.local()) * TILE_SIZE2 + Vector2(li.offset),
- .dist = li.max_distance * chunk_size,
+ .dist = li.max_distance,
.color = li.color,
.falloff = li.falloff,
};