forked from github/server
Wandlung orc->uruk
This commit is contained in:
parent
ff08203f58
commit
baa41eab03
|
@ -728,9 +728,12 @@ static void
|
||||||
fix_age(void)
|
fix_age(void)
|
||||||
{
|
{
|
||||||
faction * f;
|
faction * f;
|
||||||
|
const race * oldorc = rc_find("orc");
|
||||||
|
const race * uruk = rc_find("uruk");
|
||||||
for (f=factions;f;f=f->next) {
|
for (f=factions;f;f=f->next) {
|
||||||
if (f->no!=MONSTER_FACTION && playerrace(f->race)) continue;
|
if (f->no!=MONSTER_FACTION && playerrace(f->race)) continue;
|
||||||
if (f->age!=turn) {
|
if (f->race==oldorc) f->race= uruk;
|
||||||
|
else if (f->age!=turn) {
|
||||||
log_printf("Alter von Partei %s auf %d angepasst.\n", factionid(f), turn);
|
log_printf("Alter von Partei %s auf %d angepasst.\n", factionid(f), turn);
|
||||||
f->age = turn;
|
f->age = turn;
|
||||||
}
|
}
|
||||||
|
@ -1767,11 +1770,12 @@ static int
|
||||||
resize_plane(struct plane * p, int radius)
|
resize_plane(struct plane * p, int radius)
|
||||||
{
|
{
|
||||||
region * center = findregion(p->minx+(p->maxx-p->minx)/2, p->miny+(p->maxy-p->miny)/2);
|
region * center = findregion(p->minx+(p->maxx-p->minx)/2, p->miny+(p->maxy-p->miny)/2);
|
||||||
int minx = center->x - radius;
|
int x, y, minx, maxx, miny, maxy;
|
||||||
int maxx = center->x + radius;
|
if (!center) return 0;
|
||||||
int miny = center->y - radius;
|
minx = center->x - radius;
|
||||||
int maxy = center->y + radius;
|
maxx = center->x + radius;
|
||||||
int x, y;
|
miny = center->y - radius;
|
||||||
|
maxy = center->y + radius;
|
||||||
|
|
||||||
for (x=minx;x<=maxx;++x) {
|
for (x=minx;x<=maxx;++x) {
|
||||||
for (y=miny;y<=maxy;++y) {
|
for (y=miny;y<=maxy;++y) {
|
||||||
|
|
Loading…
Reference in New Issue