/[enigma]/enigma/src/options.cc
ViewVC logotype

Diff of /enigma/src/options.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by dheck, Sun Jun 15 10:42:40 2003 UTC revision 1.16 by reallysoft, Tue Jun 17 23:46:08 2003 UTC
# Line 138  options::SetLevelFinished(const string & Line 138  options::SetLevelFinished(const string &
138      assert(difficulty==enigma::DIFFICULTY_EASY || difficulty==enigma::DIFFICULTY_HARD);      assert(difficulty==enigma::DIFFICULTY_EASY || difficulty==enigma::DIFFICULTY_HARD);
139    
140      if (LevelStatus *stat = GetLevelStatus(pack, level)) {      if (LevelStatus *stat = GetLevelStatus(pack, level)) {
141          if ((stat->finished & difficulty) == 0) {          stat->finished  |= difficulty;
142              stat->finished     |= difficulty;          stat->solved_at  = time(0);
             LevelStatusChanged  = true;  
         }  
143      }      }
144      else {      else {
145          SetLevelStatus(pack, level, LevelStatus(-1, -1, difficulty));          SetLevelStatus(pack, level, LevelStatus(-1, -1, difficulty));
         LevelStatusChanged  = true;  
146      }      }
147    
148        LevelStatusChanged = true;
149  }  }
150    
151  /* Determine name of the user's personal configuration file. */  /* Determine name of the user's personal configuration file. */

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26