forked from github/server
- Zaubersprüche ertrinken nicht mehr
This commit is contained in:
parent
359e711d4d
commit
233fe1b72b
|
@ -3334,6 +3334,7 @@ processorders (void)
|
|||
|
||||
puts(" - Zerstören, Geben, Rekrutieren, Vergessen");
|
||||
economics();
|
||||
remove_empty_units();
|
||||
|
||||
puts(" - Gebäudeunterhalt (1. Versuch)");
|
||||
maintain_buildings(false);
|
||||
|
|
|
@ -663,7 +663,7 @@ drown(region *r)
|
|||
unit *u = *up;
|
||||
int amphibian_level = fspecial(u->faction, FS_AMPHIBIAN);
|
||||
|
||||
if (u->ship) {
|
||||
if (u->ship || u->race == new_race[RC_SPELL]) {
|
||||
up=&u->next;
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -2453,8 +2453,8 @@ remove_empty_units_in_region(region *r)
|
|||
while (*up) {
|
||||
unit * u = *up;
|
||||
|
||||
if ((old_race(u->race) != RC_SPELL && u->number <= 0)
|
||||
|| (old_race(u->race) == RC_SPELL && u->age <= 0)
|
||||
if ((u->number <= 0 && u->race != new_race[RC_SPELL])
|
||||
|| (u->age <= 0 && u->race == new_race[RC_SPELL])
|
||||
|| u->number < 0) {
|
||||
destroy_unit(u);
|
||||
}
|
||||
|
|
|
@ -2031,14 +2031,6 @@ movement(void)
|
|||
unit *u = *up;
|
||||
keyword_t kword;
|
||||
|
||||
/* Sollte hier nicht mehr auftreten */
|
||||
/*
|
||||
if(u->no == 0) {
|
||||
up = &u->next;
|
||||
continue;
|
||||
}
|
||||
*/
|
||||
|
||||
if (fval(u, FL_FOLLOWING)) {
|
||||
/* skip all followers */
|
||||
do {
|
||||
|
|
Loading…
Reference in New Issue