From 777da8686914ba290638cd44600bf8a3997f9184 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 13 Aug 2003 21:41:36 +0000 Subject: [PATCH] Veraendertes Verhalten des Mappers: bei Weltenden werden Feuerwaende eingezogen, wenn sie 10 Wochen alt sind. Verhindert, dass alte und neue Welten zusammenstossen. --- src/mapper/mapper.c | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/src/mapper/mapper.c b/src/mapper/mapper.c index 4168bb519..30c6fac8e 100644 --- a/src/mapper/mapper.c +++ b/src/mapper/mapper.c @@ -1561,29 +1561,16 @@ void frame_regions(void) { region * r = regions; - int lastage=r->age; - while (r!=0) { - if (r->age<20) { - if (r->age+1age = lastage; - } - lastage=r->age; - r = r->next; - } - r = regions; - while (r!=0) { - if (r->terrain==T_OCEAN) { - direction_t d; - for (d=0;d!=6;++d) { - region * rn = rconnect(r, d); - if (rn!=0 && rn->terrain==T_OCEAN) { - if ((rn->age+5)*2age && r->age<50) { - if (rn->units) log_printf("Cannot terraform %s\n", regionname(rn, NULL)); - else terraform(rn, T_FIREWALL); - } - } + for (r=regions;r;r=r->next) if (r->age>10 && r->terrain!=T_FIREWALL) { + direction_t d; + for (d=0;d!=MAXDIRECTIONS;++d) { + region * rn = rconnect(r, d); + if (rn==NULL) { + rn = new_region(r->x+delta_x[d], r->y+delta_y[d]); + terraform(rn, T_FIREWALL); + rn->age=r->age; } } - r=r->next; } }