linter fixes
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline failed

This commit is contained in:
2026-02-18 08:16:10 +01:00
parent f589b9bbca
commit 3922f51c8e
18 changed files with 132 additions and 153 deletions

View File

@@ -5,7 +5,6 @@ local INPUT_KEY_LEFT = 2
local INPUT_KEY_RIGHT = 3
local INPUT_KEY_A = 4 -- Z key
local INPUT_KEY_B = 5 -- X key
local INPUT_KEY_X = 6 -- A key
local INPUT_KEY_Y = 7 -- S key
-- Keyboard keys

View File

@@ -53,7 +53,6 @@ end
function TIC()
init_game()
cls(Config.colors.black)
local handler = STATE_HANDLERS[Context.active_window]
if handler then

View File

@@ -37,7 +37,6 @@ end
function UI.word_wrap(text, max_chars_per_line)
if text == nil then return {""} end
local lines = {}
for input_line in (text .. "\n"):gmatch("(.-)\n") do
local current_line = ""
local words_in_line = 0
@@ -52,18 +51,15 @@ function UI.word_wrap(text, max_chars_per_line)
current_line = word
end
end
if words_in_line > 0 then
table.insert(lines, current_line)
else
table.insert(lines, "")
end
end
if #lines == 0 then
return {""}
end
return lines
end
@@ -91,7 +87,6 @@ end
function UI.draw_desition_selector(desitions, selected_desition_index)
local bar_height = 16
local bar_y = Config.screen.height - bar_height
rect(0, bar_y, Config.screen.width, bar_height, Config.colors.dark_grey)
if #desitions > 0 then
@@ -121,4 +116,4 @@ function UI.update_desition_selector(desitions, selected_desition_index)
selected_desition_index = Util.safeindex(desitions, selected_desition_index + 1)
end
return selected_desition_index
end
end