about summary refs log tree commit diff stats
path: root/Source/Validator.cpp
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2019-12-03 10:04:16 -0800
committerjbzdarkid <jbzdarkid@gmail.com>2019-12-03 10:04:16 -0800
commit39644676e2716a285fcea6bb81e07f326bda2f68 (patch)
tree77bc9650d4a8fd2162b073ee939035608f7ada21 /Source/Validator.cpp
parent00d641c5c70d1b1141dafb7b297ca18f259b6af0 (diff)
downloadwitness-tutorializer-39644676e2716a285fcea6bb81e07f326bda2f68.tar.gz
witness-tutorializer-39644676e2716a285fcea6bb81e07f326bda2f68.tar.bz2
witness-tutorializer-39644676e2716a285fcea6bb81e07f326bda2f68.zip
Started work on symmetry island
Diffstat (limited to 'Source/Validator.cpp')
-rw-r--r--Source/Validator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Validator.cpp b/Source/Validator.cpp index 3001790..3b4020b 100644 --- a/Source/Validator.cpp +++ b/Source/Validator.cpp
@@ -13,8 +13,8 @@ void Validator::Validate(Puzzle& p) {
13 // Validate gap failures as an early exit. 13 // Validate gap failures as an early exit.
14 for (int x = 0; x < p.width; x++) { 14 for (int x = 0; x < p.width; x++) {
15 for (int y = 0; y < p.height; y++) { 15 for (int y = 0; y < p.height; y++) {
16 Cell cell = p.grid[x][y]; 16 const Cell& cell = p.grid[x][y];
17 auto decoration = cell.decoration; 17 const auto& decoration = cell.decoration;
18 if (decoration) { 18 if (decoration) {
19 if (decoration->type == Type::Stone || 19 if (decoration->type == Type::Stone ||
20 decoration->type == Type::Star || 20 decoration->type == Type::Star ||