Skip to content

Commit

Permalink
refactor: disable bounds check
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmonstrox committed Jun 10, 2024
1 parent 426104d commit 765d3dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tibiapi/battleList/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from tibiapi.utils.color import isPixelColor


@njit(cache=True, fastmath=True)
@njit(cache=True, fastmath=True, boundscheck=False)
def creaturesCount(innerContent: Image) -> int:
creaturesCount = 0
possibleCreaturesCount = len(innerContent) // 22
Expand All @@ -26,7 +26,7 @@ def getCreaturesNamesImages(content: Image, filledSlotsCount: int) -> GrayImage:
return creaturesNamesImages


@njit(cache=True, fastmath=True)
@njit(cache=True, fastmath=True, boundscheck=False)
def isTargetingCreature(content: Image, filledSlotsCount: int) -> bool:
for y in range(filledSlotsCount):
pixel = content[y * 22, 0]
Expand Down

0 comments on commit 765d3dd

Please sign in to comment.