Fixed a missing change
parent
12f3e083c6
commit
7260765327
|
@ -48,8 +48,8 @@ class Avocado:
|
||||||
in click
|
in click
|
||||||
"""
|
"""
|
||||||
mousex, mousey = click
|
mousex, mousey = click
|
||||||
if self.pycard.left < mousex and self.pycard.right > mousex and \
|
if self.rect.left < mousex and self.rect.right > mousex and \
|
||||||
self.pycard.top < mousey and self.pycard.bottom > mousey and \
|
self.rect.top < mousey and self.rect.bottom > mousey and \
|
||||||
self.color == self.select:
|
self.color == self.select:
|
||||||
self.destroy()
|
self.destroy()
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue