check entities list instead of entitiesRawData list

This commit is contained in:
Mateusz 2020-05-30 20:30:46 +02:00
parent f6fa3b461b
commit 1b71fe886b

View File

@ -253,7 +253,7 @@ class Map:
def movableList(self): def movableList(self):
terrainList = self.terrainTilesList terrainList = self.terrainTilesList
for i in self.entitiesRawData: for i in self.entities:
terrainList.remove(self.getTileOnCoord((i.x, i.y))) terrainList.remove(self.getTileOnCoord((i.x, i.y)))
return terrainList return terrainList