enigma-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Enigma-cvs] enigma/src game.cc,1.51,1.52


From: Ralf Westram <address@hidden>
Subject: [Enigma-cvs] enigma/src game.cc,1.51,1.52
Date: Mon, 03 Nov 2003 14:06:16 +0000

Update of /cvsroot/enigma/enigma/src
In directory subversions:/tmp/cvs-serv21281

Modified Files:
        game.cc 
Log Message:
- CountSolvedLevels counts non-easymode-levels as solved if solved in any mode



Index: game.cc
===================================================================
RCS file: /cvsroot/enigma/enigma/src/game.cc,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -d -r1.51 -r1.52
*** game.cc     27 Oct 2003 11:57:28 -0000      1.51
--- game.cc     3 Nov 2003 14:06:13 -0000       1.52
***************
*** 892,898 ****
      for (unsigned i=0; i<lp->size(); ++i)
      {
!         if (options::LevelStatus *ls = GetStatus(lp, i))
!             if (ls->finished >= options::Difficulty)
                  ++cnt;
      }
      return cnt;
--- 892,906 ----
      for (unsigned i=0; i<lp->size(); ++i)
      {
!         if (LevelStatus *ls = GetStatus(lp, i)) {
!             if (ls && ls->finished >= options::Difficulty) {
                  ++cnt;
+             }
+             else if (ls->finished>0) {
+                 // level has been finished in easy-mode
+                 const LevelInfo *info = lp->get_info(i);
+                 if (!info->has_easymode) // counts as solved if no easymode
+                     ++cnt;
+             }
+         }
      }
      return cnt;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]