diff options
author | Aki <please@ignore.pl> | 2023-03-17 12:00:06 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2024-04-05 19:41:19 +0200 |
commit | fc6caf6f2567a7a1e97874b0106d0987763f3058 (patch) | |
tree | 1944eaf1e87976ff12b9a42d80890041a8f46fff | |
parent | ea6f40cbfd54166712d38efce9533c47516b8e9c (diff) | |
download | kurator-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.cpp | 4 |
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); |