Skip to content

Commit

Permalink
Fix luacheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Shoozza committed Sep 16, 2019
1 parent 9e0bbbc commit 478a8dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ function api._completecommand(command, path)
end
files = filteredFiles

local result = path
local result
if #files == 0 then
result = path
elseif #files == 1 then
if love.filesystem.isDirectory(currentDirectory .. startDir .. files[1]) then
result = files[1]:lower() .. "/"
Expand Down
10 changes: 5 additions & 5 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -810,14 +810,14 @@ function love.run()

if render and love.graphics and love.graphics.isActive() then
love.graphics.origin()
if paused or not focus then
-- TODO: fix issue with leftover paused menu
--api.rectfill(64 - 4 * 4, 60, 64 + 4 * 4 - 2, 64 + 4 + 4, 1)
--api.print("paused", 64 - 3 * 4, 64, (host_time * 20) % 8 < 4 and 7 or 13)
else
if not paused and focus then
if love.draw then
love.draw()
end
--else
-- TODO: fix issue with leftover paused menu
--api.rectfill(64 - 4 * 4, 60, 64 + 4 * 4 - 2, 64 + 4 + 4, 1)
--api.print("paused", 64 - 3 * 4, 64, (host_time * 20) % 8 < 4 and 7 or 13)
end
-- reset mouse wheel
pico8.mwheel = 0
Expand Down

0 comments on commit 478a8dc

Please sign in to comment.