summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-11-05 03:34:34 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-11-05 03:34:34 (GMT)
commit3e30165c350b877bda74955446b0790d516c0490 (patch)
tree966159f1693d45f71760ba38f484801f4f9b4a0e /demos
parentecd81dcc33e2a7ccff851e9437f73d4d54ef3dab (diff)
downloadQt-3e30165c350b877bda74955446b0790d516c0490.zip
Qt-3e30165c350b877bda74955446b0790d516c0490.tar.gz
Qt-3e30165c350b877bda74955446b0790d516c0490.tar.bz2
Don't allow flagging of flipped tiles in Minehunt
Task-number: QTBUG-4249
Diffstat (limited to 'demos')
-rw-r--r--demos/declarative/minehunt/minehunt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/declarative/minehunt/minehunt.cpp b/demos/declarative/minehunt/minehunt.cpp
index 709d945..aaaaaac 100644
--- a/demos/declarative/minehunt/minehunt.cpp
+++ b/demos/declarative/minehunt/minehunt.cpp
@@ -211,7 +211,7 @@ bool MinehuntGame::flip(int row, int col)
bool MinehuntGame::flag(int row, int col)
{
TileData *t = tile(row, col);
- if(!t || !playing)
+ if(!t || !playing || t->flipped())
return false;
t->setHasFlag(!t->hasFlag());