diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2019-09-01 14:45:42 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2019-09-01 14:45:42 -0400 |
commit | 3004bca85c245c2ec77c4c1bd9343c96191c7ccf (patch) | |
tree | 2c007f9f270a658b13f6c3cefe358415b3d16025 /src/main.cpp | |
parent | e7fee98e0ee15665b40b383baf925356bb81f20d (diff) |
made all formatting match
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/src/main.cpp b/src/main.cpp index c56fd79..7876f8a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -26,23 +26,22 @@ int main([[maybe_unused]] int argc, [[maybe_unused]] char *argv[]) { - // Initialize SDL - if (SDL_Init(0) != 0) { - std::cerr << "SDL failed to initialize: " << SDL_GetError() - << std::endl; - return -1; - } else { - atexit(SDL_Quit); - } - - //LuaTest(); - - // Create the engine - Engine engine; - engine.init(); - - // Go go go! - engine.run(); - - return 0; + // Initialize SDL + if (SDL_Init(0) != 0) { + std::cerr << "SDL failed to initialize: " << SDL_GetError() + << std::endl; + return -1; + } else { + atexit(SDL_Quit); + } + + // Create the engine + Engine engine; + engine.init(); + + // Go go go! + engine.run(); + + return 0; } + |