mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-08-16 16:26:26 +00:00
Remove break after return
This commit is contained in:
parent
17185da53b
commit
9d44c2063c
@ -296,29 +296,21 @@ TLuaValue LuaAPI::MP::Get(int ConfigID) {
|
|||||||
switch (ConfigID) {
|
switch (ConfigID) {
|
||||||
case 0: // debug
|
case 0: // debug
|
||||||
return Application::Settings.getAsBool(Settings::Key::General_Debug);
|
return Application::Settings.getAsBool(Settings::Key::General_Debug);
|
||||||
break;
|
|
||||||
case 1: // private
|
case 1: // private
|
||||||
return Application::Settings.getAsBool(Settings::Key::General_Private);
|
return Application::Settings.getAsBool(Settings::Key::General_Private);
|
||||||
break;
|
|
||||||
case 2: // max cars
|
case 2: // max cars
|
||||||
return Application::Settings.getAsInt(Settings::Key::General_MaxCars);
|
return Application::Settings.getAsInt(Settings::Key::General_MaxCars);
|
||||||
break;
|
|
||||||
case 3: // max players
|
case 3: // max players
|
||||||
return Application::Settings.getAsInt(Settings::Key::General_MaxPlayers);
|
return Application::Settings.getAsInt(Settings::Key::General_MaxPlayers);
|
||||||
break;
|
|
||||||
case 4: // Map
|
case 4: // Map
|
||||||
return Application::Settings.getAsString(Settings::Key::General_Map);
|
return Application::Settings.getAsString(Settings::Key::General_Map);
|
||||||
break;
|
|
||||||
case 5: // Name
|
case 5: // Name
|
||||||
return Application::Settings.getAsString(Settings::Key::General_Name);
|
return Application::Settings.getAsString(Settings::Key::General_Name);
|
||||||
break;
|
|
||||||
case 6: // Desc
|
case 6: // Desc
|
||||||
return Application::Settings.getAsString(Settings::Key::General_Description);
|
return Application::Settings.getAsString(Settings::Key::General_Description);
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
beammp_warn("Invalid config ID \"" + std::to_string(ConfigID) + "\". Use `MP.Settings.*` enum for this.");
|
beammp_warn("Invalid config ID \"" + std::to_string(ConfigID) + "\". Use `MP.Settings.*` enum for this.");
|
||||||
return 0;
|
return 0;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user