diff --git a/doc/coding_standard.txt b/doc/coding_standard.txt index 9ae0295..de8302f 100644 --- a/doc/coding_standard.txt +++ b/doc/coding_standard.txt @@ -90,3 +90,6 @@ no-no's: struct keyword before an object declaration struct game_state* gl; //bad boi excess include directives + if body on the same line as the if keyword + elso body on the same line as the else keyword + if(thing) do_stuff(); diff --git a/src/render.cpp b/src/render.cpp index 78a0608..3bccd76 100644 --- a/src/render.cpp +++ b/src/render.cpp @@ -55,6 +55,7 @@ void render_manager::update(){ void render_manager::request_exit() { - if (m_windowCloseCallback) m_windowCloseCallback(); + if (m_windowCloseCallback) + m_windowCloseCallback(); glfwSetWindowShouldClose(m_mainWindow, true); }