Skip to content

Commit

Permalink
fix: flexsolver_stub:Destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
googer committed Jan 11, 2025
1 parent bc17deb commit 2e9bfad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/gwater2_stub.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ local flexsolver_stub = {plimit = 0, flimit = 0, pcur = 0, fcur = 0, parms = {}}
function FlexSolver(part_limit, foam_limit)
local flexsolver = table.Copy(flexsolver_stub)
flexsolver.plimit = part_limit
flexsolver.flimit = foam_limit
flexsolver.flimit = foam_limit or part_limit
flexsolver.pcur = math.floor(part_limit / 2)
return flexsolver
end

-- bounds and tick
-- destroy, bounds and tick
function flexsolver_stub:Destroy() end
function flexsolver_stub:InitBounds(mins, maxs) end
function flexsolver_stub:Tick(delta) end

Expand Down

0 comments on commit 2e9bfad

Please sign in to comment.