- Alle die keine Kompression eingeschaltet haben bekommen zip.

This commit is contained in:
Christian Schlittchen 2002-01-13 07:59:41 +00:00
parent d067092922
commit d235d83898
2 changed files with 15 additions and 1 deletions

View File

@ -32,6 +32,7 @@
#include <xml.h> #include <xml.h>
/* libc includes */ /* libc includes */
#include <stdlib.h>
#include <string.h> #include <string.h>
#include <limits.h> #include <limits.h>

View File

@ -2728,6 +2728,18 @@ fix_idleout(void)
return 0; 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 void
korrektur(void) korrektur(void)
{ {
@ -2812,6 +2824,7 @@ korrektur(void)
do_once("rndr", randomized_resources()); do_once("rndr", randomized_resources());
#endif #endif
do_once("idlo", fix_idleout()); do_once("idlo", fix_idleout());
do_once("szip", set_zip());
/* trade_orders(); */ /* trade_orders(); */
if (global.data_version < NEWROAD_VERSION) { if (global.data_version < NEWROAD_VERSION) {