From 6211f7fc6206a7af7e47ec07dfdfeac66e45f65b Mon Sep 17 00:00:00 2001 From: rexy712 Date: Sat, 15 Aug 2020 14:36:40 -0700 Subject: [PATCH] Update standard --- doc/coding_standard.txt | 3 +++ src/render.cpp | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) 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); }