diff options
author | hop311 <hop3114@gmail.com> | 2024-07-30 01:02:35 +0200 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2024-07-30 01:07:56 +0200 |
commit | 70f3c3cf6f9c1563d95ffb8c25bf8cd2bb7a1ad0 (patch) | |
tree | 5f96f7520816721a058bef8e59929c961d4c7ef2 /extension/src/openvic-extension/singletons/GameSingleton.cpp | |
parent | bf4d061b06374cd696f1f1644548f4d7af86f5ec (diff) |
Search panel + text edit box UI generationsearch-panel
Diffstat (limited to 'extension/src/openvic-extension/singletons/GameSingleton.cpp')
-rw-r--r-- | extension/src/openvic-extension/singletons/GameSingleton.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extension/src/openvic-extension/singletons/GameSingleton.cpp b/extension/src/openvic-extension/singletons/GameSingleton.cpp index c1a811e..33d70da 100644 --- a/extension/src/openvic-extension/singletons/GameSingleton.cpp +++ b/extension/src/openvic-extension/singletons/GameSingleton.cpp @@ -170,7 +170,7 @@ float GameSingleton::get_map_aspect_ratio() const { return static_cast<float>(get_map_width()) / static_cast<float>(get_map_height()); } -Vector2 GameSingleton::map_position_to_world_coords(fvec2_t const& position) const { +Vector2 GameSingleton::normalise_map_position(fvec2_t const& position) const { return Utilities::to_godot_fvec2(position) / get_map_dims(); } |