forked from github/server
make regions age only once someone discovers then
This commit is contained in:
parent
48ad550527
commit
4a7dadfb9b
|
@ -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;
|
||||||
|
|
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue