mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Code tidying with Rubocop
This commit is contained in:
@@ -302,7 +302,7 @@ class Window
|
||||
mustchange = false
|
||||
if @active
|
||||
cursor_time = System.uptime / 0.4
|
||||
if cursor_time.to_i % 2 == 0
|
||||
if cursor_time.to_i.even?
|
||||
@cursoropacity = lerp(255, 128, 0.4, cursor_time % 2)
|
||||
else
|
||||
@cursoropacity = lerp(128, 255, 0.4, (cursor_time - 1) % 2)
|
||||
|
||||
Reference in New Issue
Block a user