You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bug caused my creeps to not bother repairing structures which they couldn't get adjacent to, which is often the case with thick walls, blocking the observer behind other structures, etc.
The text was updated successfully, but these errors were encountered:
RiftLurker
added a commit
to RiftLurker/screeps-engine
that referenced
this issue
Oct 18, 2019
The documentation for
RoomPosition.findClosestByPath
clearly states that any options fromRoom.findPath
are accepted, one of which isrange
.However,
RoomPositition.findClosestByPath
appears to ignore the range option entirely.See https://github.com/screeps/engine/blob/master/src/game/rooms.js#L328. The range argument is always set to 1. It should be
opts.range || 1
.This bug caused my creeps to not bother repairing structures which they couldn't get adjacent to, which is often the case with thick walls, blocking the observer behind other structures, etc.
The text was updated successfully, but these errors were encountered: