forked from github/server
- Tarnung wird bei Strassenabriss berücksichtigt (Guerillas können Straßen zerstören)
This commit is contained in:
parent
f86694385f
commit
cad9a8b86d
|
@ -302,8 +302,9 @@ destroy_road(unit *u, int n, struct order * ord)
|
||||||
region *r = u->region;
|
region *r = u->region;
|
||||||
|
|
||||||
for (u2=r->units;u2;u2=u2->next) {
|
for (u2=r->units;u2;u2=u2->next) {
|
||||||
if (u2->faction!=u->faction && getguard(u2)&GUARD_TAX &&
|
if (u2->faction!=u->faction && getguard(u2)&GUARD_TAX
|
||||||
!alliedunit(u, u2->faction, HELP_GUARD)) {
|
&& cansee(u2->faction, u->region, u, 0)
|
||||||
|
&& !alliedunit(u, u2->faction, HELP_GUARD)) {
|
||||||
cmistake(u, ord, 70, MSG_EVENT);
|
cmistake(u, ord, 70, MSG_EVENT);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue