game is in a working state again, now just cleaning up
This commit is contained in:
1 parent
1f3954ac79
commit
7a6df4fbe5
4 files changed
+33
-71
No files matched your search
@@ -29,6 +29,7 @@ void Window::update_display(Point* segments[]) {
|
||||
m_board[segments[2]->m_row][segments[2]->m_col] = segments[2];
|
||||
for(int i = 3; i < ROW * COL; i++) {
|
||||
if(segments[i] != nullptr) {
|
||||
if(segments[i]->m_row < 0 || segments[i]->m_col < 0) continue;
|
||||
m_board[segments[i]->m_row][segments[i]->m_col] = segments[i];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user