Update standard

This commit is contained in:
rexy712 2020-08-15 14:36:40 -07:00
parent c355a7a9e0
commit 6211f7fc62
2 changed files with 5 additions and 1 deletions

View File

@ -90,3 +90,6 @@ no-no's:
struct keyword before an object declaration struct keyword before an object declaration
struct game_state* gl; //bad boi struct game_state* gl; //bad boi
excess include directives 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();

View File

@ -55,6 +55,7 @@ void render_manager::update(){
void render_manager::request_exit() void render_manager::request_exit()
{ {
if (m_windowCloseCallback) m_windowCloseCallback(); if (m_windowCloseCallback)
m_windowCloseCallback();
glfwSetWindowShouldClose(m_mainWindow, true); glfwSetWindowShouldClose(m_mainWindow, true);
} }