medfall

A super great game engine
Log | Files | Refs

commit cda70cc2ecc4aaebc91f87488721a89a7a29313f
parent b2cfd5c199c3fbab956005bf4ed922cc826613ed
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sat Sep  2 20:01:00 +0300

Only mouselook in release builds

Diffstat:
main.cc | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/main.cc b/main.cc @@ -50,7 +50,9 @@ int main( int argc, char ** argv ) { workqueue_init( &state.background_tasks, &mem.persistent_arena, 4 ); game_init( &state, &mem ); +#if RELEASE_BUILD glfwSetInputMode( window, GLFW_CURSOR, GLFW_CURSOR_DISABLED ); +#endif const double program_start_time = glfwGetTime(); double last_frame_time = program_start_time; @@ -127,6 +129,11 @@ int main( int argc, char ** argv ) { last_xpos = xpos; last_ypos = ypos; +#if !RELEASE_BUILD + input.mouse_dx = 0; + input.mouse_dy = 0; +#endif + if( total_frames % 60 == 0 ) { hotload_shaders(); }