Correct formatting in Main.cpp
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
parent
1d0129e681
commit
b19733f47e
1 changed files with 6 additions and 6 deletions
12
src/Main.cpp
12
src/Main.cpp
|
@ -50,12 +50,12 @@ static unsigned long int next = 1;
|
||||||
int rep_rand()
|
int rep_rand()
|
||||||
{
|
{
|
||||||
next = ((next) * 214013 + 2531011);
|
next = ((next) * 214013 + 2531011);
|
||||||
return ((next) >> 16) & 0x7FFF;
|
return ((next) >> 16) & 0x7FFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
void rep_srand(unsigned int seed)
|
void rep_srand(unsigned int seed)
|
||||||
{
|
{
|
||||||
next = seed;
|
next = seed;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Framerate stuff
|
//Framerate stuff
|
||||||
|
@ -82,7 +82,7 @@ int GetFramePerSecound()
|
||||||
current_tick = SDL_GetTicks();
|
current_tick = SDL_GetTicks();
|
||||||
++current_frame;
|
++current_frame;
|
||||||
|
|
||||||
if ( base_tick + 1000 <= current_tick )
|
if (base_tick + 1000 <= current_tick)
|
||||||
{
|
{
|
||||||
base_tick += 1000;
|
base_tick += 1000;
|
||||||
frames_this_second = current_frame;
|
frames_this_second = current_frame;
|
||||||
|
@ -487,7 +487,7 @@ bool SystemTask()
|
||||||
|
|
||||||
case SDL_KEYDOWN:
|
case SDL_KEYDOWN:
|
||||||
case SDL_KEYUP:
|
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.
|
//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
|
//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.
|
//is in a completely different place to where it is on a Japanese keyboard.
|
||||||
|
@ -561,7 +561,7 @@ bool SystemTask()
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#else
|
#else
|
||||||
switch (event.key.keysym.sym)
|
switch (event.key.keysym.sym)
|
||||||
{
|
{
|
||||||
case SDLK_ESCAPE:
|
case SDLK_ESCAPE:
|
||||||
|
@ -627,7 +627,7 @@ bool SystemTask()
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue