From 09a607143a6b4fbd5a1c7dbf8f0e6c9229722fa1 Mon Sep 17 00:00:00 2001 From: Francois Donnet Date: Wed, 2 Oct 2002 17:38:46 +0000 Subject: [PATCH] erreur de reconnaisance du buffer. Cela n'arrive que si une cellule ressemblant au buffer est construite avant dans la liste de cellules de loon. --- alliance/src/loon/src/lon_lib_utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/alliance/src/loon/src/lon_lib_utils.c b/alliance/src/loon/src/lon_lib_utils.c index 687aa719..5d5f84b8 100644 --- a/alliance/src/loon/src/lon_lib_utils.c +++ b/alliance/src/loon/src/lon_lib_utils.c @@ -403,7 +403,8 @@ extern cell_list* getCellbuffer() befig=cell->BEFIG; if (befig->BEREG || befig->BEBUS || !befig->BEOUT) continue; /*simple affect*/ - if (ABL_ATOM(befig->BEOUT->ABL)) { + if (ABL_ATOM(befig->BEOUT->ABL) && ABL_ATOM_VALUE(befig->BEOUT->ABL)!=getablatomone() + && ABL_ATOM_VALUE(befig->BEOUT->ABL)!=getablatomzero() ) { best=cell; for (cell=cell->NEXT; cell; cell=cell->NEXT) { if (best->AREA>cell->AREA) cell=best;