diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 9e07efa14..3892a9d52 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -3143,11 +3143,22 @@ doaddline: // without talking about the overdraw of course. sub->sector->validcount = validcount;/// \todo fix that in a better way - while (count--) + if (numPolyObjects) { - if (LIKELY(!line->polyseg)) // ignore segs that belong to polyobjects + while (count--) + { + if (LIKELY(!line->polyseg)) // ignore segs that belong to polyobjects + HWR_AddLine(line); + line++; + } + } + else + { + while (count--) + { HWR_AddLine(line); - line++; + line++; + } } }