| 246 | } |
| 247 | #ifdef DEBUG |
| 248 | void CheckList() |
| 249 | { |
| 250 | MPASSERT( totalCost == FLT_MAX ); |
| 251 | for( PathNode* it = next; it != this; it=it->next ) { |
| 252 | MPASSERT( it->prev == this || it->totalCost >= it->prev->totalCost ); |
| 253 | MPASSERT( it->totalCost <= it->next->totalCost ); |
| 254 | } |
| 255 | } |
| 256 | #endif |
| 257 | |
| 258 | void CalcTotalCost() { |