Un core dump en moins...
This commit is contained in:
parent
2d988ec2f9
commit
0a391eaf10
|
@ -1,9 +1,12 @@
|
||||||
/*
|
/*
|
||||||
### -------------------------------------------------- ###
|
### -------------------------------------------------- ###
|
||||||
$Author: hcl $
|
$Author: hcl $
|
||||||
$Date: 2002/04/25 13:41:32 $
|
$Date: 2002/06/25 11:44:59 $
|
||||||
|
|
||||||
$Log: ocrAstar.cpp,v $
|
$Log: ocrAstar.cpp,v $
|
||||||
|
Revision 1.4 2002/06/25 11:44:59 hcl
|
||||||
|
Un core dump en moins...
|
||||||
|
|
||||||
Revision 1.3 2002/04/25 13:41:32 hcl
|
Revision 1.3 2002/04/25 13:41:32 hcl
|
||||||
New ripup/reroute loop, bug-kill (CALU&TALU).
|
New ripup/reroute loop, bug-kill (CALU&TALU).
|
||||||
|
|
||||||
|
@ -538,12 +541,16 @@ ocrSignal *findSignal(ocrNaturalInt i_uIndex)
|
||||||
(suspect->TAG != TAG_TERRA) \
|
(suspect->TAG != TAG_TERRA) \
|
||||||
) \
|
) \
|
||||||
{ \
|
{ \
|
||||||
if (((findSignal (suspect->SIGNAL_INDEX))->HARD) < 2) \
|
ocrSignal *sig = NULL; \
|
||||||
{ \
|
sig = findSignal (suspect->SIGNAL_INDEX); \
|
||||||
suspect->TAG = TAG_TERRA; \
|
if (sig) { \
|
||||||
suspect->COST = ze_best->COST + kost (ze_best, suspect); \
|
if ((sig->HARD) < 2) { \
|
||||||
suspect->H = eval_equi (suspect, ze_target); \
|
suspect->TAG = TAG_TERRA; \
|
||||||
suspects.insert (suspect); \
|
suspect->COST = ze_best->COST \
|
||||||
|
+ kost (ze_best, suspect); \
|
||||||
|
suspect->H = eval_equi (suspect, ze_target); \
|
||||||
|
suspects.insert (suspect); \
|
||||||
|
} \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue