summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-03-17 12:00:06 +0100
committerAki <please@ignore.pl>2024-04-05 19:41:19 +0200
commitfc6caf6f2567a7a1e97874b0106d0987763f3058 (patch)
tree1944eaf1e87976ff12b9a42d80890041a8f46fff
parentea6f40cbfd54166712d38efce9533c47516b8e9c (diff)
downloadkurator-fc6caf6f2567a7a1e97874b0106d0987763f3058.zip
kurator-fc6caf6f2567a7a1e97874b0106d0987763f3058.tar.gz
kurator-fc6caf6f2567a7a1e97874b0106d0987763f3058.tar.bz2
Ensured literal types to be equivalent or lower than target types
-rw-r--r--kurator/src/PopupEmitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kurator/src/PopupEmitter.cpp b/kurator/src/PopupEmitter.cpp
index 9d7690f..886bbfd 100644
--- a/kurator/src/PopupEmitter.cpp
+++ b/kurator/src/PopupEmitter.cpp
@@ -25,8 +25,8 @@ PopupEmitter::emit(entt::registry& registry, const sim::Transform& transform, co
registry.emplace<Timed>(popup, 1.2);
registry.emplace<sim::Transform>(popup, transform.position, 0.0);
registry.emplace<CenteredText>(popup, std::string{}, 0, size, RED);
- registry.emplace<UIOffset>(popup, 0, 0);
- registry.emplace<PopMove>(popup, engine::Point{0, -20}, 0.9998);
+ registry.emplace<UIOffset>(popup, 0.0, 0.0);
+ registry.emplace<PopMove>(popup, engine::Point{0.0, -20.0}, 0.9998);
}
total += damage;
auto& text = registry.get<CenteredText>(popup);