From d9c523de593973f96462c76bfa9d4c4275b71dfb Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 8 Feb 2021 15:34:08 +0100 Subject: [PATCH] Fix standalone compilation. Closes #2 --- world/jobs/voxel_job.cpp | 5 +++++ world/jobs/voxel_job.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/world/jobs/voxel_job.cpp b/world/jobs/voxel_job.cpp index 6d0c813..73f3983 100644 --- a/world/jobs/voxel_job.cpp +++ b/world/jobs/voxel_job.cpp @@ -435,6 +435,11 @@ void VoxelJob::set_stage(const int value) { _stage = value; } +void VoxelJob::reset_stages() { + _current_run_stage = 0; + _stage = 0; +} + float VoxelJob::get_current_execution_time() { return 0; } diff --git a/world/jobs/voxel_job.h b/world/jobs/voxel_job.h index 023af5a..c459dcd 100644 --- a/world/jobs/voxel_job.h +++ b/world/jobs/voxel_job.h @@ -129,6 +129,8 @@ public: int get_stage() const; void set_stage(const int value); + void reset_stages(); + float get_current_execution_time(); bool should_do(const bool just_check = false);