summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJF <JF002@users.noreply.github.com>2022-03-14 21:21:11 +0100
committerGitHub <noreply@github.com>2022-03-14 21:21:11 +0100
commitfc374562ddd81629bec2958ceceaa308debb27f2 (patch)
treee999641dcab1b2117e7baa5a1776e035f5d4b4a3
parent76b7436dfb23791c1a9be505a89ddf80c8b583d7 (diff)
parent51716898aa00ea2d38dfe38d28a33b4ffbdf22ff (diff)
Merge pull request #1034 from NeroBurner/twos_comparison_warning
Twos: fix warning about extra paranthesis
-rw-r--r--src/displayapp/screens/Twos.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/screens/Twos.cpp b/src/displayapp/screens/Twos.cpp
index b15332f1..6d675859 100644
--- a/src/displayapp/screens/Twos.cpp
+++ b/src/displayapp/screens/Twos.cpp
@@ -130,7 +130,7 @@ bool Twos::placeNewTile() {
}
bool Twos::tryMerge(TwosTile grid[][4], int& newRow, int& newCol, int oldRow, int oldCol) {
- if ((grid[newRow][newCol].value == grid[oldRow][oldCol].value)) {
+ if (grid[newRow][newCol].value == grid[oldRow][oldCol].value) {
if ((newCol != oldCol) || (newRow != oldRow)) {
if (!grid[newRow][newCol].merged) {
unsigned int newVal = grid[oldRow][oldCol].value *= 2;