From 793fc6ade3fa846d803ae76ecba399d0997f2c48 Mon Sep 17 00:00:00 2001 From: Ludwig Date: Wed, 26 Feb 2025 08:49:55 +0100 Subject: [PATCH] restore braces --- src/mod_congratsonlevel.cpp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/mod_congratsonlevel.cpp b/src/mod_congratsonlevel.cpp index eb4b9de..0385ef9 100644 --- a/src/mod_congratsonlevel.cpp +++ b/src/mod_congratsonlevel.cpp @@ -150,56 +150,72 @@ public: case 10: { if (oldLevel < 10) + { money = giveAward(player); + } } break; case 20: { if (oldLevel < 20) + { money = giveAward(player); + } } break; case 30: { if (oldLevel < 30) + { money = giveAward(player); + } } break; case 40: { if (oldLevel < 40) + { money = giveAward(player); + } } break; case 50: { if (oldLevel < 50) + { money = giveAward(player); + } } break; case 60: { if (oldLevel < 60) + { money = giveAward(player); + } } break; case 70: { if (oldLevel < 70) + { money = giveAward(player); + } } break; case 80: { if (oldLevel < 80) + { money = giveAward(player); + } } break; @@ -237,7 +253,7 @@ public: } // If level is defined, they hit a reward level. - if (!level && col.CongratsPerLevelEnable) + if (!level) { // Issue a server notification for the player on level up. std::ostringstream ss;