fixed wrong vacancy generation bug.
This commit is contained in:
@@ -49,7 +49,7 @@ function buildRoads(){
|
||||
sId => {
|
||||
const source = Game.getObjectById(sId);
|
||||
var roads = [];
|
||||
roads = roads.concat(source.pos.findPathTo(this.controller));
|
||||
roads = roads.concat(source.pos.findPathTo(room.controller));
|
||||
roads.pop();
|
||||
roads = roads.concat(source.pos.findPathTo(room.find(FIND_MY_STRUCTURES, { filter:{ structureType:STRUCTURE_SPAWN }})[0]));
|
||||
roads.pop();
|
||||
|
||||
Reference in New Issue
Block a user