summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kurator/src/Battle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kurator/src/Battle.cpp b/kurator/src/Battle.cpp
index 6b3ac99..8cced8b 100644
--- a/kurator/src/Battle.cpp
+++ b/kurator/src/Battle.cpp
@@ -82,7 +82,7 @@ Battle::update(const float dt)
}
auto lines = registry.view<Line>();
for (auto&& [entity, line] : lines.each())
- line.position += 1.0 / line.duration * dt * time_factor;
+ line.position += (1.0 + line.hlength) / line.duration * dt * time_factor;
balance.update(registry);
ImGui::SetNextWindowPos({GetScreenWidth()/2.0f, GetScreenHeight()-100.0f}, ImGuiCond_Once, {0.5f, 0.5f});
ImGui::SetNextWindowSize({240.0f, 0.0f}, ImGuiCond_Once);