X-Git-Url: https://git.ctpug.org.za/?p=tabakrolletjie.git;a=blobdiff_plain;f=tabakrolletjie%2Fturnip.py;h=b67196a525da4d00d19c024aee3880399194a49c;hp=72705fccdf7aa18e3548357ffc14954e0d9a41a8;hb=4b40709e4dcc9c9924a93f6c4b5cfd8217c4d2af;hpb=d222b3e3c02b3cfb3ddcd665f6c0a21619f25223 diff --git a/tabakrolletjie/turnip.py b/tabakrolletjie/turnip.py index 72705fc..b67196a 100644 --- a/tabakrolletjie/turnip.py +++ b/tabakrolletjie/turnip.py @@ -14,14 +14,6 @@ TURNIP_FILTER = pymunk.ShapeFilter( categories=TURNIP_CATEGORY) -def check_turnips(space, pos, max_distance): - point_info = space.point_query_nearest( - pos, max_distance, pymunk.ShapeFilter(mask=TURNIP_CATEGORY)) - if point_info is not None: - return True - return False - - class TurnipInvalidPosition(Exception): pass