X-Git-Url: https://plomlompom.com/repos/?p=plomrogue2-experiments;a=blobdiff_plain;f=new%2Fplomrogue%2Fthings.py;h=f020edae3d4f0cafe3f77d2ed0de252c3aa2553f;hp=07c626525cf4ca2c94dcfe4011bcf219837665bf;hb=9bdbb5e222b45fe61147a195aaab28eb56c01fac;hpb=e3992a6473984ae21445b1ab9e28976ace474a0c diff --git a/new/plomrogue/things.py b/new/plomrogue/things.py index 07c6265..f020eda 100644 --- a/new/plomrogue/things.py +++ b/new/plomrogue/things.py @@ -220,7 +220,7 @@ class ThingAnimate(Thing): self._surrounding_map = self.world.game.\ map_type(size=(self._radius*2+1+int(add_line), self._radius*2+1)) - size = self.world.maps[(0,0)].size + size = self.world.map_size offset = self.get_surroundings_offset() for pos in self._surrounding_map: big_y, small_y = pan_and_scan(size[0], pos[0], offset[0]) @@ -265,7 +265,7 @@ class ThingAnimate(Thing): stencil = self.get_stencil() offset = self.get_surroundings_offset() visible_things = [] - size = self.world.maps[(0,0)].size + size = self.world.map_size fov_size = self.get_surrounding_map().size for thing in self.world.things: big_pos = thing.position[0]