Some code refactoring

This commit is contained in:
2015-06-07 18:24:03 +03:00
parent dec3cecfdb
commit b23d11ae46
2 changed files with 16 additions and 15 deletions

View File

@@ -74,6 +74,7 @@ void generateWordInfo(GridType &grid, std::vector<WordInfo> &winfos){
}
}
exist = true;
WordInfo t;
t.x = i;
t.y = j;
@@ -92,7 +93,7 @@ void generateWordInfo(GridType &grid, std::vector<WordInfo> &winfos){
++cur_len;
if (grid.at(i+cur_len-1).at(j) != CELL_CLEAR){
cont = false;
cur_len--;
--cur_len;
}
}
exist = true;