Skip to content

Commit

Permalink
Reverting field scanner change for #417
Browse files Browse the repository at this point in the history
Reverting part of 75701bb as it won't work for merged fields.
  • Loading branch information
pvaiko committed Jan 8, 2022
1 parent a906b73 commit 88b4c5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/field/FieldScanner.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ function FieldScanner:findContour(x, z)
return
end
local fieldId = CpFieldUtil.getFieldIdAtWorldPosition(x, z)
self:debug('Start scanning field %d at %.1f/%.1f', fieldId, x, z)
self:debug('Start scanning field %d at %.1f/%.1f', fieldId or '', x, z)
-- for now, ignore field ID as with it we can't handle merged fields.
fieldId = nil
local i = 1
while i < 10 do
self:findFieldEdge(probe, fieldId)
Expand Down

0 comments on commit 88b4c5e

Please sign in to comment.