summaryrefslogtreecommitdiff
path: root/board.cpp
diff options
context:
space:
mode:
authorJohn Fultz <jfultz@wolfram.com>2015-09-07 17:23:14 -0500
committerJohn Fultz <jfultz@wolfram.com>2015-09-07 17:23:14 -0500
commited46987403dd923d3ba14df6eb676e1e163d1d8d (patch)
tree08fa8b962ca037f2ecf05b722097e1719c41d173 /board.cpp
parent5350a57f1be22b28914fca14225c73dac5b30b24 (diff)
Fix another alphabet length limitation
The 'crosses' code for checking "fit between" plays was using a 32-bit integer as a bitfield. Now it's using C++ bitfields (including the C++11 all() operation...hopefully that doesn't cause any problems). This removes another place in the code that was limiting alphabets to 32 letters.
Diffstat (limited to 'board.cpp')
-rw-r--r--board.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/board.cpp b/board.cpp
index bf60e84..452501b 100644
--- a/board.cpp
+++ b/board.cpp
@@ -744,8 +744,8 @@ void Board::prepareEmptyBoard()
{
m_letters[i][j] = QUACKLE_NULL_MARK;
m_isBlank[i][j] = false;
- m_vcross[i][j] = Utility::Max;
- m_hcross[i][j] = Utility::Max;
+ m_vcross[i][j].set();
+ m_hcross[i][j].set();
}
}
}