das führte dazu, das Drachen nicht auf dem Ozean heilen

sind noch mehr fehler drin
This commit is contained in:
Katja Zedel 2002-11-03 12:39:05 +00:00
parent 58fa996a65
commit 84c9609e25
1 changed files with 2 additions and 1 deletions

View File

@ -3197,10 +3197,11 @@ monthly_healing(void)
for (u = r->units; u; u = u->next) { for (u = r->units; u; u = u->next) {
int umhp; int umhp;
/* dann wirkt bei Untoten das Elixier der Macht ewig */
if((u->race->flags & RCF_NOHEAL) || fval(u, FL_HUNGER) || fspecial(u->faction, FS_UNDEAD)) if((u->race->flags & RCF_NOHEAL) || fval(u, FL_HUNGER) || fspecial(u->faction, FS_UNDEAD))
continue; continue;
if(rterrain(r) == T_OCEAN && !u->ship && !(u->race->flags & RCF_SWIM)) if(rterrain(r) == T_OCEAN && !u->ship && !(canswim(u)))
continue; continue;
umhp = unit_max_hp(u) * u->number; umhp = unit_max_hp(u) * u->number;