diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2010-11-05 03:34:34 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2010-11-05 03:34:34 (GMT) |
commit | 3e30165c350b877bda74955446b0790d516c0490 (patch) | |
tree | 966159f1693d45f71760ba38f484801f4f9b4a0e /demos | |
parent | ecd81dcc33e2a7ccff851e9437f73d4d54ef3dab (diff) | |
download | Qt-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.cpp | 2 |
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()); |