Skip to content
Snippets Groups Projects
Commit 17ef2881 authored by belkhiritaha's avatar belkhiritaha
Browse files

fix propagation

parent 61959b3d
No related branches found
No related tags found
No related merge requests found
......@@ -348,7 +348,7 @@ void mainLoop(){
delta = (a - b);
if (delta > 1000/FPS_TO_GET){
timer += delta;
printf("timer : %f\n", timer/1000);
printf("timer : %d\n", (int)timer%1000);
b = a;
printf("fps : %f", 1000/delta);
switch (gameState){
......@@ -356,7 +356,7 @@ void mainLoop(){
drawMenu();
break;
case GAME:
if ((int)timer % 20 == 0){
if ((int)timer % 1000 == 0){
nextFire(fireList);
fireList=spreadFire(fireList);
printf("after spread fire : x%d,y%d\n",(fireList->fire).x,(fireList->fire).y);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment