Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/engine/collision.tl
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function Group:cull_if_hit_by(lookup: Lookup, destroys: ReadableGroup<Entity>)
if entity.clear then
entity:clear()
end
self:remove(entity as T)
self:remove(entity)
end
end

Expand Down
2 changes: 1 addition & 1 deletion src/menus/update_screen.tl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ end

local function run_script(script_name: string): (integer, string)
local output = capture("sh -c '" .. script_name .. "; echo EXIT_CODE:$?'")
local ok = tonumber(output:match("EXIT_CODE:(%d+)")) as integer
local ok = math.floor(tonumber(output:match("EXIT_CODE:(%d+)")))
return ok, output
end

Expand Down
Loading