- Revises a few log lines
- Adds d_assert macro to replace assert usage
- prints an error to indicate d_assert failed in Release builds as well as Debug builds
- could be added to the Debug utilities to allow use of assertions on necessary code without needing to buffer the results for use in the assert statement
- Fixes bug wherein designations are never put into marker mode (related to the assert statements)
d_assert(manage_one(pos,true,false),"manage_one() is failing for cavein ");
continue;
continue;
}
}
// cavein possible, but we failed to meet the criteria for activation
// cavein possible, but we failed to meet the criteria for activation
if(cavein_candidates.count(pos)){
if(cavein_candidates.count(pos)){
DEBUG(manager).print("cave-in evaluated true and no dignow and (%d > %d)\n",cavein_candidates[pos],least_access+OFFSET);
DEBUG(manager).print("cave-in evaluated true and the cavein candidate's accessibility check was made as (%d <= %d)\n",cavein_candidates[pos],least_access+OFFSET);
}else{
}else{
DEBUG(manager).print("cave-in evaluated true and no dignow and pos is not a candidate\n");
DEBUG(manager).print("cave-in evaluated true and the position was not a candidate, nor was it set for dignow\n");
}
}
assert(manage_one(pos,true,true));
d_assert(manage_one(pos,true,true),"manage_one() is failing to set a cave-in causing designation to marker mode");