On 02/01/13 02:57, Igor Murzov wrote:
> On Sun, 20 Jan 2013 17:46:18 +0900
> Jérôme Pinot <ngc...@gmail.com> wrote:
> 
> > I would like to announce the availability of elemines 0.2, the EFL
> > minesweeper clone. This new version has some improvements, like:
> > 
> > - scores management (using etrophy library)
> > - in game configuration
> > - middle click support (thanks to Sebastian Dransfeld)
> 
> Middle click is still broken in elemines 0.2.1. Middle click should
> always open all remaining surrounding squares even if player set his
> flags to incorrect positions. In this case player should obviously
> stumble on a mine and lose the game.

Well, I though that it was the expected behavior to do nothing if the
flags was not correct. I'm not very familiar with this feature and just
added it because someone was nice enough to contribute it.

Please try the this patch and let me know if it now works as expected.

BTW, thanks for your contributions, I committed your russian
translations to elemines and eperiodique.


-- 
Jérôme Pinot
http://ngc891.blogdns.net/
diff --git a/src/game.c b/src/game.c
index 172ab91..63be35c 100644
--- a/src/game.c
+++ b/src/game.c
@@ -297,6 +297,10 @@ click(void *data, Evas *e __UNUSED__, Evas_Object *obj, 
void *event_info)
           {
              for (j=y-1; j<=y+1; j++)
                {
+                  /* if a bomb was not flagged, lose the game */
+                  if ((matrix[i][j].mine == 1) && (matrix[i][j].flag == 0))
+                    _finish(i, j, EINA_FALSE);
+                  /* count correctly detected bombs */
                   if (!((i == x) && (j == y)) && (matrix[i][j].flag == 1)
                       && (matrix[i][j].mine == 1))
                     flags++;

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to