Fixed my fix LOL

This commit is contained in:
mibi88 2023-01-07 21:53:49 +01:00
parent e275effb3a
commit 12ed26362c
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ class Scii:
self.portrait_width = portrait_width
def _default_collision_check(self, world, player, x, y):
collision = 0
for i in self.world["maps"][self.map_num]["layers"]:
for i in world["maps"][self.map_num]["layers"]:
data = i["data"].split("\n")
while("" in data): data.remove("")
try:
@ -63,7 +63,7 @@ class Scii:
self.collision_npc = npc
return 2
except:
if x >= 0 and x < self.get_map_width(map_data) and y >= 0 and y < self.get_map_height(map_data): return 0
if x >= 0 and x < self.get_map_width(world["maps"][self.map_num]) and y >= 0 and y < self.get_map_height(world["maps"][self.map_num]): return 0
else: return 1
return 0
def _default_intext(self):