Skip to content

Commit

Permalink
Fixing formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chukobyte committed Aug 10, 2024
1 parent 721f19e commit 3311dbc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions editor/src/core/project_properties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,8 @@ void ProjectProperties::LoadPropertiesFromConfig(const char* filePath) {
targetFPS = JsonHelper::Get<int>(propertyJson, "target_fps");
areCollidersVisible = JsonHelper::Get<bool>(propertyJson, "colliders_visible");
version = JsonHelper::GetDefault<std::string>(propertyJson, "version", "0.0.1");
if (JsonHelper::HasKey(propertyJson, "window_background_color"))
{
auto windowBackgroundColorJson = JsonHelper::Get<nlohmann::json>(propertyJson, "window_background_color");
if (JsonHelper::HasKey(propertyJson, "window_background_color")) {
const auto windowBackgroundColorJson = JsonHelper::Get<nlohmann::json>(propertyJson, "window_background_color");
const int r = JsonHelper::Get<int>(windowBackgroundColorJson, "r");
const int g = JsonHelper::Get<int>(windowBackgroundColorJson, "g");
const int b = JsonHelper::Get<int>(windowBackgroundColorJson, "b");
Expand Down

0 comments on commit 3311dbc

Please sign in to comment.