From 2f8f93d1934fc358c24cd3726a8bd7c0985b34a8 Mon Sep 17 00:00:00 2001 From: octod Date: Mon, 12 Feb 2024 09:04:49 +0100 Subject: [PATCH] fix: fixes type --- src/system/ability/ability_container.cpp | 2 +- src/system/ability/ability_container.h | 2 +- src/system/attribute/attribute_container.cpp | 2 +- src/system/attribute/attribute_container.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/system/ability/ability_container.cpp b/src/system/ability/ability_container.cpp index 516082b..6a48faf 100644 --- a/src/system/ability/ability_container.cpp +++ b/src/system/ability/ability_container.cpp @@ -158,7 +158,7 @@ AbilityContainer::~AbilityContainer() { } -void AbilityContainer::_process(float delta) +void AbilityContainer::_process(double delta) { ability_queue->process(delta); } diff --git a/src/system/ability/ability_container.h b/src/system/ability/ability_container.h index f3ec8f9..1f4fcd7 100644 --- a/src/system/ability/ability_container.h +++ b/src/system/ability/ability_container.h @@ -56,7 +56,7 @@ namespace ggs ~AbilityContainer(); /// @brief The process function from Godot. /// @param delta The time since the last frame. - void _process(float delta); + void _process(double delta) override; /// @brief Override of the ready function from Godot. void _ready() override; /// @brief Activates an ability. diff --git a/src/system/attribute/attribute_container.cpp b/src/system/attribute/attribute_container.cpp index fa69164..204c872 100644 --- a/src/system/attribute/attribute_container.cpp +++ b/src/system/attribute/attribute_container.cpp @@ -183,7 +183,7 @@ AttributeContainer::~AttributeContainer() { } -void AttributeContainer::_process(float delta) +void AttributeContainer::_process(double delta) { if (Engine::get_singleton()->is_editor_hint()) { diff --git a/src/system/attribute/attribute_container.h b/src/system/attribute/attribute_container.h index f23008b..497b8ba 100644 --- a/src/system/attribute/attribute_container.h +++ b/src/system/attribute/attribute_container.h @@ -64,7 +64,7 @@ namespace ggs /// @brief Handles the process of the node. /// @param delta - void _process(float delta); + void _process(double delta) override; /// @brief Called when the node enters the scene tree for the first time. void _ready() override;