Skip to content
Snippets Groups Projects
Commit 81a3e829 authored by Paul GEORGES's avatar Paul GEORGES
Browse files

timer tir ennemi

parent 1a481197
No related branches found
No related tags found
No related merge requests found
...@@ -137,7 +137,7 @@ ListeB tir_update(ListeB LB, ListeP LP, ListeR LR, ListeE *LE, int time, int v, ...@@ -137,7 +137,7 @@ ListeB tir_update(ListeB LB, ListeP LP, ListeR LR, ListeE *LE, int time, int v,
break; break;
} }
} else { } else {
if(time > tmp->data.tempsTirPrecedent + 3000 && tmp->data.arme == 10){ if(time > tmp->data.tempsTirPrecedent + 2000 && tmp->data.arme == 10){
if(tmp->data.collision == false && tmp->data.pos.x > 100 && if(tmp->data.collision == false && tmp->data.pos.x > 100 &&
tmp->data.pos.x < 900 && tmp->data.pos.y > 100 && tmp->data.pos.y < 600){ tmp->data.pos.x < 900 && tmp->data.pos.y > 100 && tmp->data.pos.y < 600){
tmp->data.tir = true; tmp->data.tir = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment