X-Git-Url: https://git.jsancho.org/?p=lugaru.git;a=blobdiff_plain;f=Source%2FUser%2FAccount.cpp;h=82072fc1aa764580a1ad1000e579022a34542dd3;hp=52f863e34c7a6ba491f3530b5adce1a0042011d2;hb=b9a46d8e2b7e7e22c706e7dd3734f31015db4408;hpb=8b6e8f3ad7390309795eb35c0959264cb7924402 diff --git a/Source/User/Account.cpp b/Source/User/Account.cpp index 52f863e..82072fc 100644 --- a/Source/User/Account.cpp +++ b/Source/User/Account.cpp @@ -224,13 +224,16 @@ void Account::winCampaignLevel(int choice, float score, float time) void Account::winLevel(int level, float score, float time) { if (!devtools) { - if (score > highscore[level]) + if (score > highscore[level]) { highscore[level] = score; - if (time < fasttime[level] || fasttime[level] == 0) + } + if (time < fasttime[level] || fasttime[level] == 0) { fasttime[level] = time; + } } - if (progress < level + 1) + if (progress < level + 1) { progress = level + 1; + } } void Account::loadFile(string filename)