@@ -61,17 +61,17 @@ def resume(self, precompute_data: PrecomputeData) -> RoadDetector:
6161 if not isinstance (entity , Building ):
6262 continue
6363 for entity_id in entity .get_neighbours ():
64- neighbour = self ._world_info .get_entity (entity_id )
65- if isinstance (neighbour , Road ):
64+ neighbor = self ._world_info .get_entity (entity_id )
65+ if isinstance (neighbor , Road ):
6666 self ._target_areas .add (entity_id )
6767
6868 self ._priority_roads = set ()
6969 for entity in self ._world_info .get_entities_of_types ([Refuge ]):
7070 if not isinstance (entity , Building ):
7171 continue
7272 for entity_id in entity .get_neighbours ():
73- neighbour = self ._world_info .get_entity (entity_id )
74- if isinstance (neighbour , Road ):
73+ neighbor = self ._world_info .get_entity (entity_id )
74+ if isinstance (neighbor , Road ):
7575 self ._priority_roads .add (entity_id )
7676
7777 return self
@@ -88,16 +88,16 @@ def prepare(self) -> RoadDetector:
8888 for entity in entities :
8989 building : Building = cast (Building , entity )
9090 for entity_id in building .get_neighbours ():
91- neighbour = self ._world_info .get_entity (entity_id )
92- if isinstance (neighbour , Road ):
91+ neighbor = self ._world_info .get_entity (entity_id )
92+ if isinstance (neighbor , Road ):
9393 self ._target_areas .add (entity_id )
9494
9595 self ._priority_roads = set ()
9696 for entity in self ._world_info .get_entities_of_types ([Refuge ]):
9797 refuge : Refuge = cast (Refuge , entity )
9898 for entity_id in refuge .get_neighbours ():
99- neighbour = self ._world_info .get_entity (entity_id )
100- if isinstance (neighbour , Road ):
99+ neighbor = self ._world_info .get_entity (entity_id )
100+ if isinstance (neighbor , Road ):
101101 self ._priority_roads .add (entity_id )
102102
103103 return self
0 commit comments