bugfix movement, gm:create für Partei rr mit allen itemtypes erlaubt

This commit is contained in:
Enno Rehling 2001-02-04 09:44:16 +00:00
parent d2d67433de
commit ec614a97d9
2 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,6 @@
/* vi: set ts=2:
*
* $Id: movement.c,v 1.4 2001/02/03 13:45:32 enno Exp $
* $Id: movement.c,v 1.5 2001/02/04 09:44:16 enno Exp $
* Eressea PB(E)M host Copyright (C) 1998-2000
* Christian Schlittchen (corwin@amber.kn-bremen.de)
* Katja Zedel (katze@felidae.kn-bremen.de)
@ -1662,7 +1662,7 @@ move(region * r, unit * u, boolean move_on_land)
move(r, uf, true);
}
}
if (*up==u) up = &u->next;
if (*up==uf) up = &ue->next;
}
}
}

View File

@ -181,8 +181,11 @@ init_gmcmd(void)
if (f) {
attrib * a = a_find(f->attribs, &at_permissions);
if (!a) {
item_type * itype;
a = a_add(&f->attribs, a_new(&at_permissions));
a_add((attrib**)&a->data.v, make_atgmcreate(&it_demonseye));
for (itype=itemtypes;itype;itype=itype->next) {
a_add((attrib**)&a->data.v, make_atgmcreate(itype));
}
a_add((attrib**)&a->data.v, make_key(atoi36("gmtf")));
}
}