Fixed timer
This commit is contained in:
parent
ab1895a9f2
commit
7df1ed843c
|
@ -119,7 +119,7 @@ void erase_tile(int x, int y, char level[])
|
|||
|
||||
void draw_timer(unsigned int step)
|
||||
{
|
||||
dprint(0, 0, C_WHITE, C_BLACK, "%u.%02u", step/FPS, step%FPS);
|
||||
dprint(0, 0, C_WHITE, C_BLACK, "%u.%02u", (step*2)/FPS, (step*2)%FPS);
|
||||
}
|
||||
|
||||
void just_breathe(unsigned int step)
|
||||
|
|
|
@ -71,7 +71,7 @@ int main(void)
|
|||
has_ticked = 0;
|
||||
//START DRAW
|
||||
step++;
|
||||
if (step % 2)
|
||||
if (!(step % 2))
|
||||
{
|
||||
DRAW_LEVEL();
|
||||
draw_player(player_x, player_y);
|
||||
|
|
Loading…
Reference in New Issue