Skip to content

Commit

Permalink
Line|Map: Respect logical constness when manipulating Line::Side's sh…
Browse files Browse the repository at this point in the history
…adow count
  • Loading branch information
danij-deng committed Dec 11, 2013
1 parent f79d60f commit fa8c0fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doomsday/client/include/world/line.h
Expand Up @@ -532,7 +532,7 @@ class Line : public de::MapElement
*
* @param newCount New shadow vis count.
*/
void setShadowVisCount(int newCount) const;
void setShadowVisCount(int newCount);

#ifdef __CLIENT__

Expand Down
3 changes: 2 additions & 1 deletion doomsday/client/src/render/rend_fakeradio.cpp
Expand Up @@ -1328,7 +1328,8 @@ void Rend_RadioBspLeafEdges(BspLeaf const &bspLeaf)

// We need to check all the shadow lines linked to this BspLeaf for
// the purpose of fakeradio shadowing.
foreach(LineSide const *side, bspLeaf.shadowLines())
BspLeaf::ShadowLines const &shadowLines = bspLeaf.shadowLines();
foreach(LineSide *side, shadowLines)
{
// Already rendered during the current frame? We only want to
// render each shadow once per frame.
Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/src/world/line.cpp
Expand Up @@ -666,7 +666,7 @@ int Line::Side::shadowVisCount() const
return d->shadowVisCount;
}

void Line::Side::setShadowVisCount(int newCount) const
void Line::Side::setShadowVisCount(int newCount)
{
d->shadowVisCount = newCount;
}
Expand Down

0 comments on commit fa8c0fe

Please sign in to comment.