From d235d838983ab149cf12bfef261747b69b0a1aa9 Mon Sep 17 00:00:00 2001 From: Christian Schlittchen Date: Sun, 13 Jan 2002 07:59:41 +0000 Subject: [PATCH] - Alle die keine Kompression eingeschaltet haben bekommen zip. --- src/common/modules/dungeon.c | 3 ++- src/eressea/korrektur.c | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/common/modules/dungeon.c b/src/common/modules/dungeon.c index 8bd821ab4..1bda4aa94 100644 --- a/src/common/modules/dungeon.c +++ b/src/common/modules/dungeon.c @@ -32,6 +32,7 @@ #include /* libc includes */ +#include #include #include @@ -254,4 +255,4 @@ void register_dungeon(void) { xml_register(&xml_dungeon, "eressea dungeon", 0); -} \ No newline at end of file +} diff --git a/src/eressea/korrektur.c b/src/eressea/korrektur.c index 8115548bb..eaebf0968 100644 --- a/src/eressea/korrektur.c +++ b/src/eressea/korrektur.c @@ -2728,6 +2728,18 @@ fix_idleout(void) return 0; } +static int +set_zip(void) +{ + faction *f; + for(f=factions;f;f=f->next) { + if(!(f->options & (1 << O_BZIP2)) && !(f->options & (1 << O_COMPRESS))) { + f->options = f->options | (1 << O_COMPRESS); + } + } + return 0; +} + void korrektur(void) { @@ -2812,6 +2824,7 @@ korrektur(void) do_once("rndr", randomized_resources()); #endif do_once("idlo", fix_idleout()); + do_once("szip", set_zip()); /* trade_orders(); */ if (global.data_version < NEWROAD_VERSION) {