fix de la position de drawing de SetPattern
This commit is contained in:
parent
be18110c1d
commit
1d0947770b
@ -426,8 +426,8 @@ bool GOLTeamH::setFromPattern(std::string const& pattern)
|
|||||||
}
|
}
|
||||||
pos++;
|
pos++;
|
||||||
|
|
||||||
size_t centerX = mData.width() / 2;
|
size_t centerX = mData.width() / 2 - width/2;
|
||||||
size_t centerY = mData.height() / 2;
|
size_t centerY = mData.height() / 2 - height/2;
|
||||||
|
|
||||||
// Remplissage de la grille aux positions spécifiées par le patron
|
// Remplissage de la grille aux positions spécifiées par le patron
|
||||||
for (size_t y = 0; y < height; ++y) {
|
for (size_t y = 0; y < height; ++y) {
|
||||||
|
Loading…
Reference in New Issue
Block a user