Skip to content
Snippets Groups Projects
Commit 10c8de56 authored by Andreas Gattringer's avatar Andreas Gattringer
Browse files

cats: fix resource overlay handling

parent 8e528f09
Branches
Tags
No related merge requests found
......@@ -75,6 +75,9 @@ bool overlay_update_needed(struct cats_configuration *conf, int32_t time, enum o
case OL_HABITAT_TYPE_CC:
if (conf->time.phase != PHASE_SIMULATION && conf->overlays.habitat_cc == NULL) return true;
break;
case OL_RESOURCE:
if (conf->time.phase != PHASE_SIMULATION && conf->overlays.resources == NULL) return true;
break;
case OL_MAX:
case OL_NONE:
return false;
......
......@@ -92,6 +92,7 @@ enum overlay_type get_overlay_type_from_name(const char *name, const struct stri
if (!strcmp(name, "exclusion")) return OL_EXCLUSION;
if (!strcmp(name, "habitat carrying capacity")) return OL_HABITAT_TYPE_CC;
if (!strcmp(name, "resources")) return OL_RESOURCE;
if (registered_names != NULL) {
for (int32_t i = 0; i < registered_names->count; i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment