Der Insekten-Fix

This commit is contained in:
Enno Rehling 2004-07-11 14:37:42 +00:00
parent f80cc1c2d7
commit 88e61c08cf
1 changed files with 7 additions and 5 deletions

View File

@ -572,7 +572,7 @@ check_working_buildingtype(const region * r, const building_type * bt)
}
static boolean
is_freezing(const unit * u)
is_freezing(const unit * u)
{
if (old_race(u->race)!=RC_INSECT) return false;
if (is_cursed(u->attribs, C_KAELTESCHUTZ, 0)) return false;
@ -1260,10 +1260,12 @@ travel(unit * u, region * next, int flucht, region_list ** routep)
break;
}
if (is_freezing(u)) {
ADDMSG(&u->faction->msgs, msg_message("detectforbidden",
"unit region", u, next));
break;
if (old_race(u->race)==RC_INSECT) {
if (r_insectstalled(next) && is_freezing(u)) {
ADDMSG(&u->faction->msgs, msg_message("detectforbidden",
"unit region", u, next));
break;
}
}
add_regionlist(iroute, next);
iroute = &(*iroute)->next;