From ec614a97d908e411a2cdbcfe600ff0ac18c090c5 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 4 Feb 2001 09:44:16 +0000 Subject: [PATCH] =?UTF-8?q?bugfix=20movement,=20gm:create=20f=C3=BCr=20Par?= =?UTF-8?q?tei=20rr=20mit=20allen=20itemtypes=20erlaubt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/kernel/movement.c | 4 ++-- src/common/modules/gmcmd.c | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/common/kernel/movement.c b/src/common/kernel/movement.c index 72d30e34d..7f00f37c4 100644 --- a/src/common/kernel/movement.c +++ b/src/common/kernel/movement.c @@ -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; } } } diff --git a/src/common/modules/gmcmd.c b/src/common/modules/gmcmd.c index 45efb68da..ef100901b 100644 --- a/src/common/modules/gmcmd.c +++ b/src/common/modules/gmcmd.c @@ -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"))); } }