[Scummvm-cvs-logs] scummvm master -> cede9e773424e82ff327b3c972c3308b09daf96a

criezy criezy at scummvm.org
Sat Apr 9 22:47:48 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
cede9e7734 UPDATES: Fix interval normalization


Commit: cede9e773424e82ff327b3c972c3308b09daf96a
    https://github.com/scummvm/scummvm/commit/cede9e773424e82ff327b3c972c3308b09daf96a
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2016-04-09T21:47:20+01:00

Commit Message:
UPDATES: Fix interval normalization

When given a valid value the normalization was returning the next
valid value instead of returning the given one. This caused for
example the interval to be changed each time we opened the
options (and thus check to be automatically activated the first
time the options were accessed).

Changed paths:
    common/updates.cpp



diff --git a/common/updates.cpp b/common/updates.cpp
index 4174a96..087002a 100644
--- a/common/updates.cpp
+++ b/common/updates.cpp
@@ -42,7 +42,7 @@ int UpdateManager::normalizeInterval(int interval) {
 	const int *val = updateIntervals;
 
 	while (*val != -1) {
-		if (*val > interval)
+		if (*val >= interval)
 			return *val;
 		val++;
 	}






More information about the Scummvm-git-logs mailing list