From d2e3883fa622c13860d21f4b82aec19de3cccda9 Mon Sep 17 00:00:00 2001 From: "Clarence \"Sparr\" Risher" Date: Fri, 22 Sep 2017 19:45:07 -0700 Subject: [PATCH] move pathStart from first pos near storage to best --- src/prototype_room_init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prototype_room_init.js b/src/prototype_room_init.js index 14b664930..ab0132f84 100644 --- a/src/prototype_room_init.js +++ b/src/prototype_room_init.js @@ -46,7 +46,7 @@ Room.prototype.initSetStorageAndPathStart = function() { costMatrix.set(storagePos.x, storagePos.y, config.layout.structureAvoid); this.setMemoryCostMatrix(costMatrix); - this.memory.position.creep.pathStart = storagePos.getFirstNearPosition(); + this.memory.position.creep.pathStart = storagePos.getBestNearPosition(); const route = [{ room: this.name,