Limite le temps entre 10s et 59:59

This commit is contained in:
Mattéo Delabre 2016-04-06 00:30:18 +02:00
parent 3f117001f4
commit a94b1cda98
1 changed files with 4 additions and 0 deletions

View File

@ -142,6 +142,10 @@ int Level::getTotalTime() {
}
void Level::setTotalTime(int set_total_time) {
// faisons rester le temps entre 10s et 59:59
set_total_time = std::min(set_total_time, 3599);
set_total_time = std::max(set_total_time, 10);
total_time = set_total_time;
}