Skip to content

Commit

Permalink
Merge branch 'develop' into adv-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Aug 23, 2024
2 parents ccc238e + cc7fbc6 commit 7bc685c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugins/preserve-tombs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static const std::string CONFIG_KEY = std::string(plugin_name) + "/config";
static PersistentDataItem config;

static int32_t cycle_timestamp;
static constexpr int32_t cycle_freq = 107;
static constexpr int32_t CYCLE_TICKS = 107;

enum ConfigValues {
CONFIG_IS_ENABLED = 0,
Expand Down Expand Up @@ -153,7 +153,7 @@ DFhackCExport command_result plugin_onstatechange(color_ostream &out, state_chan
}

DFhackCExport command_result plugin_onupdate(color_ostream &out) {
if (world->frame_counter - cycle_timestamp >= cycle_freq)
if (world->frame_counter - cycle_timestamp >= CYCLE_TICKS)
update_tomb_assignments(out);
return CR_OK;
}
Expand Down
2 changes: 1 addition & 1 deletion scripts
Submodule scripts updated 1 files
+36 −18 gui/pregnancy.lua

0 comments on commit 7bc685c

Please sign in to comment.