mirror of https://github.com/tidwall/tile38.git
Fixed false faraway notifications
This commit is contained in:
parent
cd70a3d2af
commit
a99df2892a
|
@ -420,6 +420,7 @@ func fenceMatchRoam(
|
|||
// dwelling, more from old-nearbys
|
||||
oldNearbys[i] = oldNearbys[len(oldNearbys)-1]
|
||||
oldNearbys = oldNearbys[:len(oldNearbys)-1]
|
||||
i--
|
||||
if fence.nodwell {
|
||||
// no dwelling allowed, remove from both lists
|
||||
newNearbys[j] = newNearbys[len(newNearbys)-1]
|
||||
|
|
Loading…
Reference in New Issue