Skip to content

Commit 5b71ecc

Browse files
dependabot[bot]Spartan322
authored andcommitted
Bump extension/deps/openvic-simulation from a58d43d to 82ba102
Bumps [extension/deps/openvic-simulation](https://github.com/OpenVicProject/OpenVic-Simulation) from `a58d43d` to `82ba102`. - [Commits](OpenVicProject/OpenVic-Simulation@a58d43d...82ba102) --- updated-dependencies: - dependency-name: extension/deps/openvic-simulation dependency-version: 82ba1023edfba2b212800269b8910d0746031c27 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
1 parent 133a743 commit 5b71ecc

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

extension/src/openvic-extension/singletons/GameSingleton.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#include <functional>
44

5+
#include <godot_cpp/classes/time.hpp>
56
#include <godot_cpp/core/error_macros.hpp>
67
#include <godot_cpp/variant/utility_functions.hpp>
78

@@ -93,7 +94,11 @@ void GameSingleton::_on_gamestate_updated() {
9394
* MAP-21, MAP-23, MAP-25, MAP-32, MAP-33, MAP-34
9495
*/
9596
GameSingleton::GameSingleton()
96-
: game_manager { std::bind(&GameSingleton::_on_gamestate_updated, this) }, mapmode { &Mapmode::ERROR_MAPMODE } {
97+
: game_manager {
98+
std::bind(&GameSingleton::_on_gamestate_updated, this),
99+
std::bind(&Time::get_ticks_usec, Time::get_singleton()),
100+
std::bind(&Time::get_ticks_msec, Time::get_singleton())
101+
}, mapmode { &Mapmode::ERROR_MAPMODE } {
97102
ERR_FAIL_COND(singleton != nullptr);
98103
singleton = this;
99104
}

0 commit comments

Comments
 (0)