bugfix eventhandler. bei attributen immer auf next und nexthash achten

This commit is contained in:
Enno Rehling 2001-02-12 23:29:36 +00:00
parent 2b6011b2d0
commit 82c354ac01
5 changed files with 9 additions and 6 deletions

View File

@ -19,7 +19,7 @@ ARFLAGS = crs
CTAGSFLAGS = --langmap=c:.c.h --c-types=-m
CFLAGS = -I$(ERESSEA) -Wall -Wwrite-strings -Wstrict-prototypes \
-Wpointer-arith -Werror-implicit-function-declaration \
-Wno-char-subscripts \
-Wno-char-subscripts \
-march=pentiumpro -fPIC $(INCLUDES)
LDFLAGS = $(LIBS)

View File

@ -71,7 +71,7 @@ typedef struct race_type {
race_t familiars[MAXMAGIETYP];
const char *(*generate_name) (const struct unit *);
void (*age_function)(struct unit *u);
boolean (*move_allowed)(struct region *, struct region *);
boolean (*move_allowed)(const struct region *, const struct region *);
struct attrib * attribs;
} racetype;

View File

@ -1,6 +1,6 @@
/* vi: set ts=2:
*
* $Id: event.c,v 1.3 2001/02/03 13:45:33 enno Exp $
* $Id: event.c,v 1.4 2001/02/12 23:29:35 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)
@ -155,7 +155,7 @@ add_trigger(attrib ** ap, const char * event, trigger * t)
if (!strcmp(td->event, event)) {
break;
}
a = a->next;
a = a->nexttype;
}
if (!a) {
a = a_add(ap, a_new(&at_eventhandler));

View File

@ -911,3 +911,6 @@ o Leuchtt
+ Fliehende Einheiten nehmen kein Silber mehr mit (Katja, 28.12.2000)
+ Magiebegabte Vertraute haben keine Zauber mehr
- lmsreward funktioiniert nicht (curse wird nicht gesetzt)

View File

@ -4,11 +4,11 @@
CONVERT_TRIGGERS = 1
CFLAGS += -DUSE_GM_COMMANDS -DTEST_GM_COMMANDS
#CFLAGS += -DUSE_GM_COMMANDS -DTEST_GM_COMMANDS
LD=gcc
AR=ar
CC=gcc
CC=@colorgcc
INSTALL=install
MSG_COMPILE = "---> Compiling $@ "
MSG_SUBDIR = "--> Making $@ in $$subdir "