Commit 88349bf1ef1d05a1f04e05bc2173b6378f9806b0
1 parent
19819ec4
neutron.c
Showing
1 changed file
with
4 additions
and
3 deletions
Show diff stats
neutron.c
@@ -79,13 +79,14 @@ void dep(int i,int j,int dir,damier *d){ | @@ -79,13 +79,14 @@ void dep(int i,int j,int dir,damier *d){ | ||
79 | i=N-i; | 79 | i=N-i; |
80 | j=j-1; | 80 | j=j-1; |
81 | if (dir==1){ | 81 | if (dir==1){ |
82 | - while ((i>=0) && ((d->tab[i-1][j])!=empty)){ | 82 | + while ((i>=0) && ((d->tab[i][j])!=empty)){ |
83 | temp=d->tab[i][j]; | 83 | temp=d->tab[i][j]; |
84 | - (d->tab[i][j])=(d->tab[i-1][j]); | ||
85 | - (d->tab[i-1][j])=temp; | 84 | + (d->tab[i][j])=(d->tab[i-2][j]); |
85 | + (d->tab[i-2][j])=temp; | ||
86 | i=i-1; | 86 | i=i-1; |
87 | } | 87 | } |
88 | } | 88 | } |
89 | + | ||
89 | 90 | ||
90 | } | 91 | } |
91 | 92 |