File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -327,10 +327,10 @@ def _launch(self):
327
327
self .map_x , int (self .map_y / 8 ))
328
328
self .pathing_grid = np .transpose (np .array ([
329
329
[(b >> i ) & 1 for b in row for i in range (7 , - 1 , - 1 )]
330
- for row in vals ], dtype = np . bool ))
330
+ for row in vals ], dtype = bool ))
331
331
else :
332
332
self .pathing_grid = np .invert (np .flip (np .transpose (np .array (
333
- list (map_info .pathing_grid .data ), dtype = np . bool ).reshape (
333
+ list (map_info .pathing_grid .data ), dtype = bool ).reshape (
334
334
self .map_x , self .map_y )), axis = 1 ))
335
335
336
336
self .terrain_height = np .flip (
@@ -1201,7 +1201,7 @@ def get_visibility_matrix(self):
1201
1201
"""
1202
1202
arr = np .zeros (
1203
1203
(self .n_agents , self .n_agents + self .n_enemies ),
1204
- dtype = np . bool ,
1204
+ dtype = bool ,
1205
1205
)
1206
1206
1207
1207
for agent_id in range (self .n_agents ):
You can’t perform that action at this time.
0 commit comments