Skip to content

Commit

Permalink
remove useless calls to checkBuildingsNow()
Browse files Browse the repository at this point in the history
there are no building jobs to check. I originally added this call
because I mistook "jobs belonging to buildings" for "jobs for
building buildings"
  • Loading branch information
myk002 committed Oct 6, 2021
1 parent 735b68a commit b7c5aac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions internal/quickfort/build.lua
Expand Up @@ -795,8 +795,9 @@ function do_run(zlevel, grid, ctx)
stats.build_designated.value = stats.build_designated.value + 1
end
end
buildingplan.scheduleCycle()
dfhack.job.checkBuildingsNow()
if not ctx.dry_run then
buildingplan.scheduleCycle()
end
end

function do_orders(zlevel, grid, ctx)
Expand Down
4 changes: 3 additions & 1 deletion internal/quickfort/dig.lua
Expand Up @@ -722,7 +722,9 @@ function do_run(zlevel, grid, ctx)
values = values_run
ensure_ctx_stats(ctx, '')
do_run_impl(zlevel, grid, ctx)
if not ctx.dry_run then dfhack.job.checkDesignationsNow() end
if not ctx.dry_run then
dfhack.job.checkDesignationsNow()
end
end

function do_orders()
Expand Down
1 change: 0 additions & 1 deletion internal/quickfort/zone.lua
Expand Up @@ -238,7 +238,6 @@ function do_run(zlevel, grid, ctx)
stats.zone_designated.value = stats.zone_designated.value + 1
end
end
if not dry_run then dfhack.job.checkBuildingsNow() end
end

function do_orders()
Expand Down

0 comments on commit b7c5aac

Please sign in to comment.