From 72f9ac4c3e331d06a9a9abc43bf0db89192537ac Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 20 Apr 2002 20:07:35 +0000 Subject: [PATCH] =?UTF-8?q?=C3=84nderungen=20f=C3=BCr=20das=20tutorial?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/gamecode/laws.c | 4 ++-- src/common/kernel/eressea.c | 2 +- src/common/kernel/eressea.h | 1 - src/common/settings-eressea.h | 1 + src/common/settings-tutorial.h | 3 ++- src/common/settings-vinyambar-classic.h | 1 + src/common/settings-vinyambar-murder.h | 1 + src/common/settings-vinyambar.h | 1 + 8 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/common/gamecode/laws.c b/src/common/gamecode/laws.c index 8b41f3b7f..e79907991 100644 --- a/src/common/gamecode/laws.c +++ b/src/common/gamecode/laws.c @@ -242,7 +242,7 @@ restart(unit *u, const race * rc) fset(f, FFL_RESTART); fprintf(sqlstream, "UPDATE subscriptions set faction='%s' where faction" - "='%s' and game=%d;", itoa36(u->faction->no), itoa36(f->no), GAME_ID); + "='%s' and game=%d;\n", itoa36(u->faction->no), itoa36(f->no), GAME_ID); f->magiegebiet = u->faction->magiegebiet; f->options = u->faction->options; freestrlist(nu->orders); @@ -2734,7 +2734,7 @@ renumber_factions(void) a_remove(&rp->faction->attribs, rp->attrib); if (updatelog) fprintf(updatelog, "renum %s %s\n", itoa36(rp->faction->no), itoa36(rp->want)); fprintf(sqlstream, "UPDATE subscriptions set faction='%s' where " - "faction='%s' and game=%d;", itoa36(rp->want), + "faction='%s' and game=%d;\n", itoa36(rp->want), itoa36(rp->faction->no), GAME_ID); rp->faction->no = rp->want; register_faction_id(rp->want); diff --git a/src/common/kernel/eressea.c b/src/common/kernel/eressea.c index 3e35f4ebb..1d62aafe5 100644 --- a/src/common/kernel/eressea.c +++ b/src/common/kernel/eressea.c @@ -2365,7 +2365,7 @@ remove_empty_factions(void) } } fprintf(sqlstream, "UPDATE subscriptions set status='DEAD' where " - "faction='%s' and game=%d;", itoa36(f->no), GAME_ID); + "faction='%s' and game=%d\n;", itoa36(f->no), GAME_ID); *fp = f->next; /* stripfaction(f); diff --git a/src/common/kernel/eressea.h b/src/common/kernel/eressea.h index 37489b19e..bb864d9ee 100644 --- a/src/common/kernel/eressea.h +++ b/src/common/kernel/eressea.h @@ -200,7 +200,6 @@ extern void read_laen(struct region * r, int laen); #endif /* So lange kann die Partei nicht angegriffen werden */ -#define IMMUN_GEGEN_ANGRIFF 8 #undef STUDY_IF_NOT_WORKING /** Attackierende Einheiten können keine langen Befehle ausführen */ diff --git a/src/common/settings-eressea.h b/src/common/settings-eressea.h index 68deef011..406229300 100644 --- a/src/common/settings-eressea.h +++ b/src/common/settings-eressea.h @@ -15,6 +15,7 @@ * Include this file from settings.h to make eressea work. */ #define GAME_ID 0 +#define IMMUN_GEGEN_ANGRIFF 8 #define RESOURCE_CONVERSION 1 #define NEW_RESOURCEGROWTH 1 #define LARGE_CASTLES 1 diff --git a/src/common/settings-tutorial.h b/src/common/settings-tutorial.h index eac61b4d5..f1130f1c9 100644 --- a/src/common/settings-tutorial.h +++ b/src/common/settings-tutorial.h @@ -15,12 +15,13 @@ * Include this file from settings.h to make eressea work. */ #define GAME_ID 1 +#define IMMUN_GEGEN_ANGRIFF 3 #define RESOURCE_CONVERSION 1 #define NEW_RESOURCEGROWTH 1 #define LARGE_CASTLES 1 #define GROWING_TREES 1 #define REMOVENMRNEWBIE 1 -#define NMRTIMEOUT 4 +#define NMRTIMEOUT 2 #define HUNGER_DISABLES_LONGORDERS 1 #define REDUCED_PEASANTGROWTH 1 #define RACE_ADJUSTMENTS 1 diff --git a/src/common/settings-vinyambar-classic.h b/src/common/settings-vinyambar-classic.h index 1be0cf85c..c0091c5a5 100644 --- a/src/common/settings-vinyambar-classic.h +++ b/src/common/settings-vinyambar-classic.h @@ -15,6 +15,7 @@ * Include this file from settings.h to make eressea work. */ #define GAME_ID 1 +#define IMMUN_GEGEN_ANGRIFF 8 #define RESOURCE_CONVERSION 0 #define NEW_RESOURCEGROWTH 0 #define LARGE_CASTLES 0 diff --git a/src/common/settings-vinyambar-murder.h b/src/common/settings-vinyambar-murder.h index 623896c27..4d022a34e 100644 --- a/src/common/settings-vinyambar-murder.h +++ b/src/common/settings-vinyambar-murder.h @@ -15,6 +15,7 @@ * Include this file from settings.h to make eressea work. */ #define GAME_ID 0 +#define IMMUN_GEGEN_ANGRIFF 8 #define RESOURCE_CONVERSION 1 #define NEW_RESOURCEGROWTH 1 #define LARGE_CASTLES 1 diff --git a/src/common/settings-vinyambar.h b/src/common/settings-vinyambar.h index fa21bfb9d..bd1412c5a 100644 --- a/src/common/settings-vinyambar.h +++ b/src/common/settings-vinyambar.h @@ -15,6 +15,7 @@ * Include this file from settings.h to make eressea work. */ #define GAME_ID 2 +#define IMMUN_GEGEN_ANGRIFF 8 #define RESOURCE_CONVERSION 1 #define NEW_RESOURCEGROWTH 1 #define LARGE_CASTLES 1