修复铲子铲出来的空位上无法种植物的bug

This commit is contained in:
星外之神 2022-04-05 17:19:37 +08:00
parent ca1a080aef
commit 0c9d7f1468
2 changed files with 1 additions and 2 deletions

View File

@ -85,7 +85,6 @@ nuitka --mingw --standalone --onefile --show-progress --show-memory --output-dir
* 给胜利和失败界面添加音乐
* 修复已经死亡的僵尸会触发大嘴花、土豆雷甚至小推车的问题
* 用蓝色滤镜标识冷冻的僵尸
* 修复铲子铲出来的空位上无法种植物的bug
## 截屏

View File

@ -261,7 +261,7 @@ class Level(tool.State):
for i in self.plant_groups[map_y]:
if(x >= i.rect.x and x <= i.rect.right and
y >= i.rect.y and y <= i.rect.bottom):
i.kill()
self.killPlant(i)
return
# 检查小铲子的位置有没有被点击