From c33cd598b5ae8ca6aaadbcef64b2fd5a8f795f00 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 9 Apr 2006 09:31:16 +0000 Subject: [PATCH] - summondragon parameter list - number of new players. --- src/common/kernel/faction.h | 2 ++ src/common/kernel/save.c | 7 +++---- src/common/modules/modules.vcproj | 3 --- src/common/races/races.vcproj | 3 +++ src/common/spells/spells.c | 4 ++-- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/common/kernel/faction.h b/src/common/kernel/faction.h index 56d4476ec..4eb6c3ebf 100644 --- a/src/common/kernel/faction.h +++ b/src/common/kernel/faction.h @@ -46,6 +46,8 @@ typedef struct shortpwd { #define FFL_NOTIMEOUT (1<<29) /* ignore MaxAge() */ #define FFL_GM (1<<30) /* eine Partei mit Sonderrechten */ +#define FFL_SAVEMASK (FFL_GM|FFL_NOTIMEOUT|FFL_DBENTRY|FFL_NOTIMEOUT) + typedef struct faction { struct faction *next; struct faction *nexthash; diff --git a/src/common/kernel/save.c b/src/common/kernel/save.c index ef7b26d4a..1fb98c32a 100644 --- a/src/common/kernel/save.c +++ b/src/common/kernel/save.c @@ -1539,7 +1539,6 @@ readfaction(FILE * F) #endif /* KARMA_MODULE */ f->flags = ri(F); - freset(f, FFL_OVERRIDE); a_read(F, &f->attribs); if (global.data_version>=CLAIM_VERSION) { @@ -1635,15 +1634,15 @@ writefaction(FILE * F, const faction * f) wi(F, 0); #endif /* KARMA_MODULE */ - wi(F, f->flags); + wi(F, f->flags&FFL_SAVEMASK); a_write(F, f->attribs); wnl(F); #if RELEASE_VERSION>=CLAIM_VERSION write_items(F, f->items); wnl(F); #endif - fputs("end ", F); - wnl(F); + fputs("end ", F); + wnl(F); wi(F, listlen(f->ursprung)); for(ur = f->ursprung;ur;ur=ur->next) { wi(F, ur->id); diff --git a/src/common/modules/modules.vcproj b/src/common/modules/modules.vcproj index a3019e6d9..d3adb4603 100644 --- a/src/common/modules/modules.vcproj +++ b/src/common/modules/modules.vcproj @@ -317,9 +317,6 @@ - - diff --git a/src/common/races/races.vcproj b/src/common/races/races.vcproj index eaf82199b..12226029d 100644 --- a/src/common/races/races.vcproj +++ b/src/common/races/races.vcproj @@ -287,6 +287,9 @@ + + diff --git a/src/common/spells/spells.c b/src/common/spells/spells.c index 27b365a2c..2bdee9cf1 100644 --- a/src/common/spells/spells.c +++ b/src/common/spells/spells.c @@ -2703,7 +2703,7 @@ sp_summondragon(castorder *co) } ADDMSG(&mage->faction->msgs, msg_message( - "summondragon", "unit region command region", + "summondragon", "unit region command target", mage, mage->region, co->order, co->rt)); free_regionlist(rl); @@ -4882,7 +4882,7 @@ sp_dragonsong(castorder *co) } ADDMSG(&mage->faction->msgs, msg_message( - "summondragon", "unit region command region", + "summondragon", "unit region command target", mage, mage->region, co->order, co->rt)); free_regionlist(rl);