summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-07-26 19:37:49 +0200
committerGitHub <noreply@github.com>2021-07-26 19:37:49 +0200
commita504e4d4c3af53bb21a0013132719affd3e21798 (patch)
treed7555c02d6f13f3df95dadb78669c1b1c47c6c17 /core
parentdb1603b805056a2b1087089829ab9bd6b2cfbd44 (diff)
parent4ecb6fba8002533f266d03e13ccba7cee4216421 (diff)
Merge pull request #38880 from aaronfranke/timer
Use doubles for time everywhere in Timer/SceneTree
Diffstat (limited to 'core')
-rw-r--r--core/os/main_loop.cpp4
-rw-r--r--core/os/main_loop.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/core/os/main_loop.cpp b/core/os/main_loop.cpp
index 016d9d0a09..3c0e56f5a8 100644
--- a/core/os/main_loop.cpp
+++ b/core/os/main_loop.cpp
@@ -66,7 +66,7 @@ void MainLoop::initialize() {
}
}
-bool MainLoop::physics_process(float p_time) {
+bool MainLoop::physics_process(double p_time) {
if (get_script_instance()) {
return get_script_instance()->call("_physics_process", p_time);
}
@@ -74,7 +74,7 @@ bool MainLoop::physics_process(float p_time) {
return false;
}
-bool MainLoop::process(float p_time) {
+bool MainLoop::process(double p_time) {
if (get_script_instance()) {
return get_script_instance()->call("_process", p_time);
}
diff --git a/core/os/main_loop.h b/core/os/main_loop.h
index 34e944709b..b42e9b18ff 100644
--- a/core/os/main_loop.h
+++ b/core/os/main_loop.h
@@ -60,8 +60,8 @@ public:
};
virtual void initialize();
- virtual bool physics_process(float p_time);
- virtual bool process(float p_time);
+ virtual bool physics_process(double p_time);
+ virtual bool process(double p_time);
virtual void finalize();
void set_initialize_script(const Ref<Script> &p_initialize_script);