Fixed bugs detected by overloaded

One bug was that rotxel was used at the end, no matter what algorithm was chosen.
The other was that rotxel was taking into account a image of width x width dimensions.
This commit is contained in:
azagaya 2020-02-04 12:59:06 -03:00
parent e24e9d65a5
commit a9a647a7ee
2 changed files with 6 additions and 2 deletions

View file

@ -686,7 +686,7 @@ func rotxel(sprite : Image, angle : float):
aux.lock()
sprite.lock()
for x in range(sprite.get_width()):
for y in range(sprite.get_width()):
for y in range(sprite.get_height()):
var dx = 3*(x - center.x)
var dy = 3*(y - center.y)
var found_pixel : bool = false