debug printing
This commit is contained in:
parent
464c8866ea
commit
fe11cb4c9e
1 changed files with 8 additions and 12 deletions
|
@ -958,12 +958,10 @@ public:
|
|||
for (int xx = 0; xx < dtype.TileWidth; ++xx) {
|
||||
int pos = (y + yy) * (size / 2) + (x + xx);
|
||||
if (pos >= good->size()) {
|
||||
DebugPrint(
|
||||
"BUG: RangeTargetFinder::FillBadGood.Compute out of range. "\
|
||||
"size: %d, pos: %d, "\
|
||||
"x: %d, xx: %d, y: %d, yy: %d",
|
||||
size, pos, x, xx, y, yy
|
||||
);
|
||||
printf("BUG: RangeTargetFinder::FillBadGood.Compute out of range. "\
|
||||
"size: %d, pos: %d, " \
|
||||
"x: %d, xx: %d, y: %d, yy: %d",
|
||||
size, pos, x, xx, y, yy);
|
||||
break;
|
||||
}
|
||||
if (cost < 0) {
|
||||
|
@ -1042,12 +1040,10 @@ private:
|
|||
int pos = (y + yy) * (size / 2) + (x + xx);
|
||||
int localFactor = (!xx && !yy) ? 1 : splashFactor;
|
||||
if (pos >= good->size()) {
|
||||
DebugPrint(
|
||||
"BUG: RangeTargetFinder.Compute out of range. "\
|
||||
"size: %d, pos: %d, "\
|
||||
"x: %d, xx: %d, y: %d, yy: %d",
|
||||
size, pos, x, xx, y, yy
|
||||
);
|
||||
printf("BUG: RangeTargetFinder.Compute out of range. " \
|
||||
"size: %d, pos: %d, " \
|
||||
"x: %d, xx: %d, y: %d, yy: %d",
|
||||
size, pos, x, xx, y, yy);
|
||||
break;
|
||||
}
|
||||
sbad += bad->at(pos) / localFactor;
|
||||
|
|
Loading…
Reference in a new issue