This commit is contained in:
@@ -196,7 +196,7 @@ void GamePlayingAppMenu::drawFrame() const {
|
||||
for (int y = 0; y < this->game.getNextPieces().at(i).getLength(); y++) {
|
||||
for (int x = 0; x < this->game.getNextPieces().at(i).getLength(); x++) {
|
||||
sf::RectangleShape cell(nextCellSize);
|
||||
if (this->game.getNextPieces().at(i).getPositions().contains(Position(x, y))) {
|
||||
if (this->game.getNextPieces().at(i).containsSquare(Position(x, y))) {
|
||||
cell.setFillColor(pieceColor);
|
||||
lowestRank = y;
|
||||
}
|
||||
@@ -223,7 +223,7 @@ void GamePlayingAppMenu::drawFrame() const {
|
||||
for (int y = 0; y < this->game.getHeldPiece()->getLength(); y++) {
|
||||
for (int x = 0; x < this->game.getHeldPiece()->getLength(); x++) {
|
||||
sf::RectangleShape cell(holdCellSize);
|
||||
if (this->game.getHeldPiece()->getPositions().contains(Position(x, y))) {
|
||||
if (this->game.getHeldPiece()->containsSquare(Position(x, y))) {
|
||||
cell.setFillColor(color);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user