Skip to content

Commit

Permalink
Code format - (Clang-format)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 8, 2024
1 parent 00556f4 commit af9e0d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/game/scheduling/events_scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ bool EventsScheduler::loadScheduleEventFromJson() {
json eventsJson;
try {
file >> eventsJson;
} catch (const json::parse_error& e) {
} catch (const json::parse_error &e) {
g_logger().error("{} - JSON parsing error in file '{}': {}", __FUNCTION__, folder, e.what());
consoleHandlerExit();
return false;
Expand All @@ -42,7 +42,7 @@ bool EventsScheduler::loadScheduleEventFromJson() {
phmap::flat_hash_set<std::string_view> loadedScripts;
std::map<std::string, EventRates> eventsOnSameDay;

for (const auto& event : eventsJson["events"]) {
for (const auto &event : eventsJson["events"]) {
std::string eventScript = event.value("script", "");
std::string eventName = event.value("name", "");

Expand Down Expand Up @@ -167,7 +167,7 @@ bool EventsScheduler::loadScheduleEventFromXml() {

loadedScripts.insert(eventScript);
auto coreFolder = g_configManager().getString(CORE_DIRECTORY);
std::filesystem::path filePath = std::filesystem::current_path() / coreFolder / "XML" / "events" / "scheduler" /"scripts" / eventScript;
std::filesystem::path filePath = std::filesystem::current_path() / coreFolder / "XML" / "events" / "scheduler" / "scripts" / eventScript;
if (!g_scripts().loadEventSchedulerScripts(filePath)) {
g_logger().warn("{} - Cannot load the file '{}' on '/events/scripts/scheduler/'", __FUNCTION__, eventScript);
return false;
Expand Down

0 comments on commit af9e0d0

Please sign in to comment.