mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 22:24:58 +00:00
More Rubocop changes
This commit is contained in:
@@ -73,12 +73,11 @@ class TilePuzzleCursor < BitmapSprite
|
||||
yin = [@tileheight - (@cursorbitmap.height / 2) + expand, (@tileheight - (@cursorbitmap.height / 2)) / 2,
|
||||
(@tileheight - (@cursorbitmap.height / 2)) / 2, -expand]
|
||||
4.times do |i|
|
||||
if @arrows[i]
|
||||
self.bitmap.blt(x + xin[i], y + yin[i], @cursorbitmap.bitmap,
|
||||
Rect.new((@cursorbitmap.width / 2) + ((i % 2) * (@cursorbitmap.width / 4)),
|
||||
(i / 2) * (@cursorbitmap.height / 2),
|
||||
@cursorbitmap.width / 4, @cursorbitmap.height / 2))
|
||||
end
|
||||
next if !@arrows[i]
|
||||
self.bitmap.blt(x + xin[i], y + yin[i], @cursorbitmap.bitmap,
|
||||
Rect.new((@cursorbitmap.width / 2) + ((i % 2) * (@cursorbitmap.width / 4)),
|
||||
(i / 2) * (@cursorbitmap.height / 2),
|
||||
@cursorbitmap.width / 4, @cursorbitmap.height / 2))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user