aboutsummaryrefslogtreecommitdiff
path: root/src/headless/main.cpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-09-06 22:35:46 +0200
committer GitHub <noreply@github.com>2024-09-06 22:35:46 +0200
commitd36045735fc56e8cfe772713c2ef5012dad94ae3 (patch)
tree479bddfb6a01b2627118ee2b71adea4105fe8718 /src/headless/main.cpp
parent429765a8cdc93cc8975d2676d04cb628c21064a4 (diff)
parent34c8b1039a5a7982a84c718ca8625efcd940bbf5 (diff)
Merge pull request #192 from OpenVicProject/update-clock
Trigger gamestate update in headless mode + add `update_clock` functions
Diffstat (limited to 'src/headless/main.cpp')
-rw-r--r--src/headless/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/headless/main.cpp b/src/headless/main.cpp
index ecce333..fcb5e8d 100644
--- a/src/headless/main.cpp
+++ b/src/headless/main.cpp
@@ -49,6 +49,9 @@ static bool run_headless(Dataloader::path_vector_t const& roots, bool run_tests)
Logger::info("===== Starting game session... =====");
ret &= game_manager.start_game_session();
+ // This triggers a gamestate update
+ ret &= game_manager.update_clock();
+
return ret;
}