make regions age only once someone discovers then

This commit is contained in:
Enno Rehling 2020-10-12 08:47:54 +02:00
parent 48ad550527
commit 4a7dadfb9b
2 changed files with 4 additions and 2 deletions

View File

@ -791,7 +791,7 @@ region *new_region(int x, int y, struct plane *pl, int uid)
{ {
region *r; region *r;
r = region_create(uid); r = region_create(uid);
r->age = 1; r->age = 0;
add_region(r, x, y); add_region(r, x, y);
assert(pl == r->_plane); assert(pl == r->_plane);
return r; return r;

View File

@ -810,7 +810,9 @@ void demographics(void)
season_t last_weeks_season = calendar_season(turn - 1); season_t last_weeks_season = calendar_season(turn - 1);
for (r = regions; r; r = r->next) { for (r = regions; r; r = r->next) {
++r->age; /* also oceans. no idea why we didn't always do that */ if (r->age>0 || r->units || r->attribs) {
++r->age; /* also oceans. no idea why we didn't always do that */
}
live(r); live(r);
if (!fval(r->terrain, SEA_REGION)) { if (!fval(r->terrain, SEA_REGION)) {