- Fix des Fix: Alle Einheiten heilen.

This commit is contained in:
Christian Schlittchen 2002-01-20 10:26:38 +00:00
parent e3d3b711ca
commit f40ff92eb9
1 changed files with 16 additions and 0 deletions

View File

@ -2745,6 +2745,21 @@ set_zip(void)
return 0; return 0;
} }
static int
heal_all(void)
{
region *r;
unit *u;
for(r=regions; r; r=r->next) {
for(u=r->units;u;u=u->next) {
int max_hp = unit_max_hp(u) * u->number;
if(u->hp < max_hp) {
u->hp = max_hp;
}
}
}
}
void void
korrektur(void) korrektur(void)
{ {
@ -2830,6 +2845,7 @@ korrektur(void)
#endif #endif
do_once("idlo", fix_idleout()); do_once("idlo", fix_idleout());
do_once("szip", set_zip()); do_once("szip", set_zip());
do_once("heal", heal_all());
/* trade_orders(); */ /* trade_orders(); */
if (global.data_version < NEWROAD_VERSION) { if (global.data_version < NEWROAD_VERSION) {