Skip to content

Commit

Permalink
修复坚果保龄球闪退bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wszqkzqk committed Jun 7, 2022
1 parent 87d5d4a commit d9a49ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/component/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def getMapGridPos(self, map_x, map_y):
map_y * c.GRID_Y_SIZE + c.GRID_Y_SIZE//5 * 3 + c.MAP_OFFSET_Y)

def setMapGridType(self, map_x, map_y, plot_type):
self.map[map_y][map_x] = plot_type
self.map[map_y][map_x][c.MAP_PLOT_TYPE] = plot_type

def addMapPlant(self, map_x, map_y, plantName, sleep=False):
self.map[map_y][map_x][c.MAP_PLANT].add(plantName)
Expand Down
2 changes: 1 addition & 1 deletion source/state/level.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def pvzTime(self, current_time):
def initBowlingMap(self):
for x in range(3, self.map.width):
for y in range(self.map.height):
self.map.setMapGridType(x, y, c.MAP_STATE_UNAVAILABLE) # 将坚果保龄球红线右侧设置为不可种植任何植物
self.map.setMapGridType(x, y, c.MAP_UNAVAILABLE) # 将坚果保龄球红线右侧设置为不可种植任何植物

def initState(self):
if c.CHOOSEBAR_TYPE in self.map_data:
Expand Down

0 comments on commit d9a49ff

Please sign in to comment.