Changeset 205

Show
Ignore:
Timestamp:
05/15/2009 01:45:17 PM (16 months ago)
Author:
guyru
Message:

Load the last reset date correctly and only report to the statistics a new game once.

Location:
trunk/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/MainFrame.cpp

    r200 r205  
    568568        short int dice[5];      //holds the dices score 
    569569         
    570         if (m_numofplaysleft == 13) 
     570        // If this is the first roll of the game, notify the statistics 
     571        // object 
     572        if (m_numofplaysleft == 13 && m_rolls == 3) 
    571573                m_stats->game_started(); 
    572574 
  • trunk/src/statistics.cpp

    r202 r205  
    6262        } 
    6363 
    64         istringstream i(tmp); 
     64        istringstream i( backend->get("statistics_last_reset")); 
    6565        i >> _last_reset; 
    6666        if (!_last_reset)