Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

Commit 467268d

Browse files
committed
Another #50 attempt.
1 parent cdbc5ac commit 467268d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/js/maps/system_map.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,14 +421,14 @@ var SystemMap = {
421421
.chargeDistance(200 * SCALING_FACTOR)
422422
.linkDistance(function(l) {
423423
if (l.type == 'jumpbridge') return 0;
424-
// if (l.type == 'wormhole') return -1000;
424+
if (l.type == 'wormhole') return 0;
425425
if (l.source.fixed || l.target.fixed) return 0;
426426
var dx = l.source.x - l.target.x, dy = l.source.y - l.target.y;
427427
return Math.min(50 * SCALING_FACTOR, Math.sqrt(dx * dx + dy * dy));
428428
})
429429
.linkStrength(function(l) {
430430
if (l.type == 'jumpbridge') return 0;
431-
// if (l.type == 'wormhole') return 0;
431+
if (l.type == 'wormhole') return 0;
432432
if (l.source.fixed || l.target.fixed) return 0.1;
433433
return 0.25;
434434
});

0 commit comments

Comments
 (0)