reset the saved frame counter on new world
@ -122,6 +122,7 @@ DFhackCExport command_result plugin_shutdown (color_ostream &out) {
}
DFhackCExport command_result plugin_load_data (color_ostream &out) {
cycle_timestamp = 0;
config = World::GetPersistentData(CONFIG_KEY);
if (!config.isValid()) {
@ -158,6 +158,7 @@ DFhackCExport command_result plugin_shutdown (color_ostream &out) {
@ -167,6 +167,7 @@ DFhackCExport command_result plugin_shutdown(color_ostream &out)
DFhackCExport command_result plugin_load_data(color_ostream &out)
{
if (!config.isValid())
@ -96,6 +96,7 @@ DFhackCExport command_result plugin_enable(color_ostream &out, bool enable) {
@ -107,6 +107,7 @@ DFhackCExport command_result plugin_shutdown(color_ostream &out)
@ -162,6 +162,7 @@ DFhackCExport command_result plugin_shutdown (color_ostream &out) {
@ -103,6 +103,7 @@ DFhackCExport command_result plugin_shutdown (color_ostream &out) {
@ -85,6 +85,7 @@ DFhackCExport command_result plugin_shutdown (color_ostream &out) {
@ -165,6 +165,8 @@ DFhackCExport command_result plugin_shutdown (color_ostream &out) {
world_plant_ids.clear();
for (size_t i = 0; i < world->raws.plants.all.size(); ++i) {
auto & plant = world->raws.plants.all[i];