Skip to content

Commit

Permalink
Merge pull request #550 from kianzarrin/master
Browse files Browse the repository at this point in the history
IterateNodeSegments sometimes does not work. Fixes #549
  • Loading branch information
krzychu124 committed Nov 14, 2019
2 parents faae760 + 9c52395 commit ec41c68
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions TLM/TMPE.CitiesGameBridge/Service/NetService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace CitiesGameBridge.Service {
namespace CitiesGameBridge.Service {
using System;
using System.Collections.Generic;
using ColossalFramework;
Expand Down Expand Up @@ -120,7 +120,13 @@ bool ProcessFun(ushort nId, ref NetNode node) {
}
}
} else {
ushort segmentId = node.GetSegment(0);
ushort segmentId = 0;
for (int i = 0; i < 8; ++i) {
segmentId = node.GetSegment(i);
if (segmentId != 0) {
break;
}
}
ushort initSegId = segmentId;

while (true) {
Expand Down

0 comments on commit ec41c68

Please sign in to comment.