]> git.jsancho.org Git - lugaru.git/blobdiff - Source/User/Account.cpp
Added braces to all statements with clang-tidy and ran clang-format again
[lugaru.git] / Source / User / Account.cpp
index 52f863e34c7a6ba491f3530b5adce1a0042011d2..82072fc1aa764580a1ad1000e579022a34542dd3 100644 (file)
@@ -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)