Strategická: C: fix accessible
This commit is contained in:
parent
657ea0cb72
commit
9704c02849
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ Field* get_neighbour_field(Field* f, Direction direction)
|
||||||
bool is_field_accessible(Field* f, Team* t)
|
bool is_field_accessible(Field* f, Team* t)
|
||||||
{
|
{
|
||||||
if (f->hill) return false;
|
if (f->hill) return false;
|
||||||
if (f->occupied_by_team != NULL && f->occupied_by_team != t) return false;
|
if (f->protected_for_team != NULL && f->protected_for_team != t) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue