summaryrefslogtreecommitdiff
path: root/core/os
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-10-18 18:47:44 +0200
committerkobewi <kobewi4e@gmail.com>2022-10-19 00:05:48 +0200
commitd06a8320e5d5117f8a057da16d33443f410a5d9f (patch)
tree895f507322e9b4371c6fd7141e2c6d3d3c67278a /core/os
parent4a96fce801cae2d3e0fe42005c74ca7d60cc1582 (diff)
Simplify GDVIRTUAL_CALL calls
Diffstat (limited to 'core/os')
-rw-r--r--core/os/main_loop.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/core/os/main_loop.cpp b/core/os/main_loop.cpp
index a96e1989f9..c0504a174c 100644
--- a/core/os/main_loop.cpp
+++ b/core/os/main_loop.cpp
@@ -65,21 +65,15 @@ void MainLoop::initialize() {
}
bool MainLoop::physics_process(double p_time) {
- bool quit;
- if (GDVIRTUAL_CALL(_physics_process, p_time, quit)) {
- return quit;
- }
-
- return false;
+ bool quit = false;
+ GDVIRTUAL_CALL(_physics_process, p_time, quit);
+ return quit;
}
bool MainLoop::process(double p_time) {
- bool quit;
- if (GDVIRTUAL_CALL(_process, p_time, quit)) {
- return quit;
- }
-
- return false;
+ bool quit = false;
+ GDVIRTUAL_CALL(_process, p_time, quit);
+ return quit;
}
void MainLoop::finalize() {