From 9704c02849bb2bff6cd7f7a30f65d713f6029371 Mon Sep 17 00:00:00 2001 From: kulisak12 Date: Fri, 23 Sep 2022 13:44:33 +0200 Subject: [PATCH] =?UTF-8?q?Strategick=C3=A1:=20C:=20fix=20accessible?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- klient/strategy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klient/strategy.cpp b/klient/strategy.cpp index f16d13b..d5f9d85 100644 --- a/klient/strategy.cpp +++ b/klient/strategy.cpp @@ -280,7 +280,7 @@ Field* get_neighbour_field(Field* f, Direction direction) bool is_field_accessible(Field* f, Team* t) { 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; }