File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -128,8 +128,17 @@ public override bool LoadInput(string directory)
128128 remainingTilesToTune = remainingTilesToTune . Where ( tile => ! alreadyTuned . Contains ( tile ) ) . ToList ( ) ;
129129 remainingTilesToTune = remainingTilesToTune . Where ( tile => ! skippedTiles . Contains ( tile ) ) . ToList ( ) ;
130130
131- if ( inData . Data . ContainsKey ( "SHAPE_FILE" ) && ! string . IsNullOrEmpty ( inData . Data [ "SHAPE_FILE" ] ) &&
132- TileShapeData == null )
131+ if ( TileShapeData != null )
132+ {
133+ var tilesToVisit = new HashSet < int > ( ) ;
134+ int nt = TilesHorizontal * TilesVertical ;
135+ for ( int i = 0 ; i < nt ; i ++ )
136+ {
137+ if ( TileShapeData [ i ] != null && TileShapeData [ i ] . visit ) tilesToVisit . Add ( i ) ;
138+ }
139+ remainingTilesToTune = remainingTilesToTune . Where ( tile => tilesToVisit . Contains ( tile ) ) . ToList ( ) ;
140+ }
141+ else if ( inData . Data . ContainsKey ( "SHAPE_FILE" ) && ! string . IsNullOrEmpty ( inData . Data [ "SHAPE_FILE" ] ) )
133142 {
134143 ParseShapeFile ( inData . Data [ "SHAPE_FILE" ] ) ;
135144 }
You can’t perform that action at this time.
0 commit comments