diff --git a/doomsday/client/src/render/biasillum.cpp b/doomsday/client/src/render/biasillum.cpp index 7fd42d9099..bd307745f5 100644 --- a/doomsday/client/src/render/biasillum.cpp +++ b/doomsday/client/src/render/biasillum.cpp @@ -100,7 +100,7 @@ DENG2_PIMPL_NOREF(BiasIllum) // Do we need to re-accumulate light contributions? if(activeContributors) { - /// Maximum accumulated color strength. + // Maximum accumulated color strength. static Vector3f const saturated(1, 1, 1); for(int i = 0; i < MAX_CONTRIBUTORS; ++i) @@ -162,7 +162,6 @@ DENG2_PIMPL_NOREF(BiasIllum) DENG_ASSERT(tracker != 0); BiasSource const &source = tracker->contributor(index); - Vector3f &casted = contribution(index); /// @todo LineSightTest should (optionally) perform this test. @@ -178,7 +177,6 @@ DENG2_PIMPL_NOREF(BiasIllum) } Vector3d sourceToPoint = source.origin() - point; - double distance = sourceToPoint.length(); double dot = sourceToPoint.normalize().dot(normalAtPoint); diff --git a/doomsday/client/src/render/biassource.cpp b/doomsday/client/src/render/biassource.cpp index 6222da7202..a3e132d0c5 100644 --- a/doomsday/client/src/render/biassource.cpp +++ b/doomsday/client/src/render/biassource.cpp @@ -69,7 +69,7 @@ DENG2_PIMPL(BiasSource) color(color), minLight(minLight), maxLight(maxLight), - lastUpdateTime(0), // Force an update (vertices are STILL_UNSEEN). + lastUpdateTime(0), // Force an update. changed(true) {} @@ -83,7 +83,7 @@ DENG2_PIMPL(BiasSource) color(other.color), minLight(other.minLight), maxLight(other.maxLight), - lastUpdateTime(0), // Force an update (vertices are STILL_UNSEEN). + lastUpdateTime(0), // Force an update. changed(true) {} @@ -172,10 +172,8 @@ void BiasSource::setOrigin(Vector3d const &newOrigin) { if(d->origin != newOrigin) { - //qDebug() << "BiasSource" << App_World().map().toIndex(*this) << "new origin" << newOrigin.asText(); - d->changed = true; - d->origin = newOrigin; + d->origin = newOrigin; d->bspLeaf = 0; // Notify interested parties of the change. @@ -233,7 +231,7 @@ BiasSource &BiasSource::setColor(Vector3f const &newColor) { Vector3f oldColor = d->color; - d->color = newColorAmplified; + d->color = newColorAmplified; d->changed = true; // Notify interested parties of the change. @@ -258,7 +256,7 @@ BiasSource &BiasSource::setIntensity(float newIntensity) if(!d->inVoid) { d->intensity = d->primaryIntensity; - d->changed = true; + d->changed = true; } // Notify interested parties of the change. @@ -298,7 +296,7 @@ bool BiasSource::trackChanges(BiasDigest &changes, uint digestIndex, uint curren if(newIntensity != oldIntensity) { d->intensity = newIntensity; - d->changed = true; + d->changed = true; } } diff --git a/doomsday/client/src/world/bspleaf.cpp b/doomsday/client/src/world/bspleaf.cpp index 44bf537956..e4d3806de4 100644 --- a/doomsday/client/src/world/bspleaf.cpp +++ b/doomsday/client/src/world/bspleaf.cpp @@ -50,9 +50,6 @@ ddouble triangleArea(Vector2d const &v1, Vector2d const &v2, Vector2d const &v3) } #ifdef __CLIENT__ -/** - * Structure containing data for a geometry group. - */ struct GeometryGroup { typedef QList BiasIllums; @@ -295,7 +292,7 @@ DENG2_PIMPL(BspLeaf) } /** - * Retrieve the geometry data for the unique @a group identifier. + * Retrieve geometry data by it's associated unique @a group identifier. * * @param group Geometry group identifier. * @param canAlloc @c true= to allocate if no data exists. Note that the diff --git a/doomsday/client/src/world/segment.cpp b/doomsday/client/src/world/segment.cpp index 5453458f17..23d38e1d54 100644 --- a/doomsday/client/src/world/segment.cpp +++ b/doomsday/client/src/world/segment.cpp @@ -41,9 +41,6 @@ using namespace de; #ifdef __CLIENT__ -/** - * Structure containing data for a geometry group. - */ struct GeometryGroup { typedef QList BiasIllums; @@ -99,12 +96,10 @@ DENG2_PIMPL(Segment) #ifdef __CLIENT__ /** - * Retrieve the geometry data for the unique @a group identifier. + * Retrieve geometry data by it's associated unique @a group identifier. * * @param group Geometry group identifier. - * @param canAlloc @c true= to allocate if no data exists. Note that the - * number of vertices in the fan geometry must be known - * at this time. + * @param canAlloc @c true= to allocate if no data exists. */ GeometryGroup *geometryGroup(int group, bool canAlloc = true) {