Skip to content
Snippets Groups Projects
Commit 3c64ee1a authored by echicken's avatar echicken :chicken:
Browse files

Default [node,hub].net to zone number when entering new Zone.

Would be overridden if a Region or Host line is encountered.
This dumbness brought to you by FTS-5000.005.
nelgin to test against his extensive nodelist collection.
parent a6f7a507
Branches
Tags
No related merge requests found
...@@ -107,10 +107,10 @@ function NodeList(filename, warn) ...@@ -107,10 +107,10 @@ function NodeList(filename, warn)
switch(fields[0]) { switch(fields[0]) {
case 'Zone': case 'Zone':
node.zone = parseInt(fields[1], 10); node.zone = parseInt(fields[1], 10);
node.net = 0; node.net = node.zone;
node.node = 0; node.node = 0;
hub.zone = node.zone; hub.zone = node.zone;
hub.net = 0; hub.net = node.zone;
hub.node = 0; hub.node = 0;
break; break;
case 'Region': case 'Region':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment