From b19733f47e6657ccaac7d4b22968dd33ba69cbe2 Mon Sep 17 00:00:00 2001 From: Gabriel Ravier Date: Wed, 8 May 2019 09:30:14 +0200 Subject: [PATCH] Correct formatting in Main.cpp Signed-off-by: Gabriel Ravier --- src/Main.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Main.cpp b/src/Main.cpp index c8d08769..61d6a3bf 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -50,12 +50,12 @@ static unsigned long int next = 1; int rep_rand() { next = ((next) * 214013 + 2531011); - return ((next) >> 16) & 0x7FFF; + return ((next) >> 16) & 0x7FFF; } void rep_srand(unsigned int seed) { - next = seed; + next = seed; } //Framerate stuff @@ -82,7 +82,7 @@ int GetFramePerSecound() current_tick = SDL_GetTicks(); ++current_frame; - if ( base_tick + 1000 <= current_tick ) + if (base_tick + 1000 <= current_tick) { base_tick += 1000; frames_this_second = current_frame; @@ -487,7 +487,7 @@ bool SystemTask() case SDL_KEYDOWN: case SDL_KEYUP: - #ifdef FIX_BUGS +#ifdef FIX_BUGS //BUG FIX: Pixel relied on key codes for input, but these differ based on keyboard layout. //This would break the alternate movement keys on typical English keyboards, since the '=' key //is in a completely different place to where it is on a Japanese keyboard. @@ -561,7 +561,7 @@ bool SystemTask() break; } break; - #else +#else switch (event.key.keysym.sym) { case SDLK_ESCAPE: @@ -627,7 +627,7 @@ bool SystemTask() break; } break; - #endif +#endif } }