debug printing

This commit is contained in:
Tim Felgentreff 2016-02-04 15:02:00 +01:00
parent 464c8866ea
commit fe11cb4c9e

View file

@ -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;