summary refs log tree commit diff stats
path: root/Source
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2019-11-09 12:04:41 -0800
committerjbzdarkid <jbzdarkid@gmail.com>2019-11-09 12:04:41 -0800
commit31f36163cf2d7ec0b7be4d55b76f35c99631ad61 (patch)
treef93f60b8b5eec63526e7f06bae8e2a7bd7b4ae47 /Source
parentecbcb91e95a08201fbf90476ee4a18526cfc80bb (diff)
downloadwitness-tutorializer-31f36163cf2d7ec0b7be4d55b76f35c99631ad61.tar.gz
witness-tutorializer-31f36163cf2d7ec0b7be4d55b76f35c99631ad61.tar.bz2
witness-tutorializer-31f36163cf2d7ec0b7be4d55b76f35c99631ad61.zip
Salvaged
Diffstat (limited to 'Source')
-rw-r--r--Source/Panel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Panel.cpp b/Source/Panel.cpp index f8dc36b..4ed5c51 100644 --- a/Source/Panel.cpp +++ b/Source/Panel.cpp
@@ -37,6 +37,8 @@ void PuzzleSerializer::ReadIntersections(Puzzle& p, int id) {
37 } 37 }
38 38
39 for (int j=0; j<numIntersections; j++) { 39 for (int j=0; j<numIntersections; j++) {
40 if (intersectionFlags[connections_a[j]] & Flags::IS_ENDPOINT) break;
41 if (intersectionFlags[connections_b[j]] & Flags::IS_ENDPOINT) break;
40 float x1 = intersectionLocations[2*connections_a[j]]; 42 float x1 = intersectionLocations[2*connections_a[j]];
41 float y1 = intersectionLocations[2*connections_a[j]+1]; 43 float y1 = intersectionLocations[2*connections_a[j]+1];
42 float x2 = intersectionLocations[2*connections_b[j]]; 44 float x2 = intersectionLocations[2*connections_b[j]];