forked from github/server
Der Insekten-Fix
This commit is contained in:
parent
f80cc1c2d7
commit
88e61c08cf
|
@ -572,7 +572,7 @@ check_working_buildingtype(const region * r, const building_type * bt)
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean
|
static boolean
|
||||||
is_freezing(const unit * u)
|
is_freezing(const unit * u)
|
||||||
{
|
{
|
||||||
if (old_race(u->race)!=RC_INSECT) return false;
|
if (old_race(u->race)!=RC_INSECT) return false;
|
||||||
if (is_cursed(u->attribs, C_KAELTESCHUTZ, 0)) 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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_freezing(u)) {
|
if (old_race(u->race)==RC_INSECT) {
|
||||||
ADDMSG(&u->faction->msgs, msg_message("detectforbidden",
|
if (r_insectstalled(next) && is_freezing(u)) {
|
||||||
"unit region", u, next));
|
ADDMSG(&u->faction->msgs, msg_message("detectforbidden",
|
||||||
break;
|
"unit region", u, next));
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
add_regionlist(iroute, next);
|
add_regionlist(iroute, next);
|
||||||
iroute = &(*iroute)->next;
|
iroute = &(*iroute)->next;
|
||||||
|
|
Loading…
Reference in New Issue