- age_factions und use aus processorders gezogen, macht Debugging

etwas einfacher.
This commit is contained in:
Christian Schlittchen 2002-01-27 10:57:26 +00:00
parent abe8bc00a9
commit 39829881c8
2 changed files with 37 additions and 24 deletions

View File

@ -3241,30 +3241,10 @@ update_spells(void)
} }
void static void
processorders (void) age_factions(void)
{ {
faction *f; faction *f;
region *r;
unit *u;
strlist *S;
if (turn == 0) srand(time((time_t *) NULL));
else srand(turn);
puts(" - neue Einheiten erschaffen...");
new_units();
puts(" - Monster KI...");
plan_monsters();
set_passw(); /* und pruefe auf illegale Befehle */
puts(" - Defaults und Instant-Befehle...");
setdefaults();
instant_orders();
mail();
puts(" - Altern");
for (f = factions; f; f = f->next) { for (f = factions; f; f = f->next) {
f->age = f->age + 1; f->age = f->age + 1;
@ -3273,8 +3253,14 @@ processorders (void)
"newbieimmunity%i:turns", IMMUN_GEGEN_ANGRIFF - f->age)); "newbieimmunity%i:turns", IMMUN_GEGEN_ANGRIFF - f->age));
} }
} }
}
puts(" - Benutzen"); static void
use(void)
{
region *r;
unit *u;
strlist *S;
for (r = regions; r; r = r->next) { for (r = regions; r; r = r->next) {
for (u = r->units; u; u = u->next) { for (u = r->units; u; u = u->next) {
@ -3292,6 +3278,33 @@ processorders (void)
} }
} }
} }
}
void
processorders (void)
{
region *r;
if (turn == 0) srand(time((time_t *) NULL));
else srand(turn);
puts(" - neue Einheiten erschaffen...");
new_units();
puts(" - Monster KI...");
plan_monsters();
set_passw(); /* und pruefe auf illegale Befehle */
puts(" - Defaults und Instant-Befehle...");
setdefaults();
instant_orders();
mail();
puts(" - Altern");
age_factions();
puts(" - Benutzen");
use();
puts(" - Kontaktieren, Betreten von Schiffen und Gebäuden (1.Versuch)"); puts(" - Kontaktieren, Betreten von Schiffen und Gebäuden (1.Versuch)");
do_misc(0); do_misc(0);

View File

@ -18,6 +18,6 @@
#define NEW_RESOURCEGROWTH 1 #define NEW_RESOURCEGROWTH 1
#define LARGE_CASTLES 1 #define LARGE_CASTLES 1
#define GROWING_TREES 1 #define GROWING_TREES 1
#define REMOVENMRNEWBIE 0 #define REMOVENMRNEWBIE 1
#define REMOVENMRTIMEOUT 1 #define REMOVENMRTIMEOUT 1
#define HUNGER_DISABLES_LONGORDERS 1 #define HUNGER_DISABLES_LONGORDERS 1