Skip to content

Commit

Permalink
Code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ange-yaghi committed Sep 6, 2022
1 parent 0803fff commit e96e55d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ if (DTV)
endif (DTV)

if (PIRANHA_ENABLED)
add_compile_definitions(ATG_ENGINE_PIRANHA_ENABLED)
add_compile_definitions(ATG_ENGINE_SIM_PIRANHA_ENABLED)
endif (PIRANHA_ENABLED)

if (DISCORD_ENABLED)
add_compile_definitions(ATG_ENGINE_DISCORD_ENABLED)
add_compile_definitions(ATG_ENGINE_SIM_DISCORD_ENABLED)
endif (DISCORD_ENABLED)

# Enable group projects in folders
Expand Down
6 changes: 3 additions & 3 deletions src/engine_sim_application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <sstream>


#if ATG_ENGINE_DISCORD_ENABLED
#if ATG_ENGINE_SIM_DISCORD_ENABLED
#include "../discord/Discord.h"
#endif

Expand Down Expand Up @@ -607,7 +607,7 @@ void EngineSimApplication::loadScript() {
Vehicle *vehicle = nullptr;
Transmission *transmission = nullptr;

#ifdef ATG_ENGINE_PIRANHA_ENABLED
#ifdef ATG_ENGINE_SIM_PIRANHA_ENABLED
es_script::Compiler compiler;
compiler.initialize();
const bool compiled = compiler.compile("../assets/main.mr");
Expand All @@ -626,7 +626,7 @@ void EngineSimApplication::loadScript() {
}

compiler.destroy();
#endif /* PIRANHA_ENABLED */
#endif /* ATG_ENGINE_SIM_PIRANHA_ENABLED */

if (vehicle == nullptr) {
Vehicle::Parameters vehParams;
Expand Down

0 comments on commit e96e55d

Please sign in to comment.