Skip to content

Commit

Permalink
correct ENDDELAY by unit evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
Apaczer committed May 25, 2024
1 parent eed2dc6 commit c1589ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#define ANIMDELAY 60

// time from the moment the logo stops moving and sound is played until the logo app closes (unit: frames) (60 frames = 1 sec)
#define ENDDELAY 3000
#define ENDDELAY 300

//speed at which the logo moves (unit: pixels per frame)
#define ANIMSPEED 1
Expand Down Expand Up @@ -157,7 +157,7 @@ int main(int argc, char* argv[]) {
input_poll();
}

for (int j = 0 ; j < (sqrt(2+8*enddel)-1)/2 && (!quit_app); j++){
for (int j = 0 ; j < (sqrt(2+8*enddel*10)-1)/2 && (!quit_app); j++){
input_poll();
SDL_Delay(j);
}
Expand Down

0 comments on commit c1589ac

Please sign in to comment.