summaryrefslogtreecommitdiff
path: root/main/main.cpp
diff options
context:
space:
mode:
authorJosh Jones <kilauea.jones@gmail.com>2022-12-21 14:21:43 -0800
committerJosh Jones <kilauea.jones@gmail.com>2023-01-07 17:29:00 -0800
commita0715b30f94430078422ff05d81b9cfa85ddb4ce (patch)
tree207c64c952c9fc5f30c9a091e9deb38d45ab633f /main/main.cpp
parentfcba87e696d58912838d8a4a6987b10efa28e78f (diff)
Rework const on NavigationServer methods
`const` is used on all methods, even when they cause modification of the server. This reworks the methods of the server to only use `const` on method that don't change the state of the server.
Diffstat (limited to 'main/main.cpp')
-rw-r--r--main/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 4cab469672..d21574b0e3 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -2607,7 +2607,7 @@ bool Main::start() {
if (debug_navigation) {
sml->set_debug_navigation_hint(true);
NavigationServer3D::get_singleton()->set_active(true);
- NavigationServer3D::get_singleton_mut()->set_debug_enabled(true);
+ NavigationServer3D::get_singleton()->set_debug_enabled(true);
}
#endif
@@ -3032,7 +3032,7 @@ bool Main::iteration() {
break;
}
- NavigationServer3D::get_singleton_mut()->process(physics_step * time_scale);
+ NavigationServer3D::get_singleton()->process(physics_step * time_scale);
message_queue->flush();