Remove unused argument

coverity_scan
scrawl 9 years ago
parent 4690fd3f22
commit ca4e859f61

@ -269,8 +269,6 @@ namespace MWGui
// normalized cell coordinates
float nX,nY;
markerPos.interior = mInterior;
if (!mInterior)
{
int cellX, cellY;
@ -1078,7 +1076,7 @@ namespace MWGui
{
if (!mLocalMapRender)
return true;
return mLocalMapRender->isPositionExplored(nX, nY, cellX, cellY, interior);
return mLocalMapRender->isPositionExplored(nX, nY, cellX, cellY);
}
}

@ -78,7 +78,6 @@ namespace MWGui
{
MarkerUserData(MWRender::LocalMap* map)
: mLocalMapRender(map)
, interior(false)
, cellX(0)
, cellY(0)
, nX(0.f)
@ -89,7 +88,6 @@ namespace MWGui
bool isPositionExplored() const;
MWRender::LocalMap* mLocalMapRender;
bool interior;
int cellX;
int cellY;
float nX;

@ -478,7 +478,7 @@ osg::Vec2f LocalMap::interiorMapToWorldPosition (float nX, float nY, int x, int
return pos;
}
bool LocalMap::isPositionExplored (float nX, float nY, int x, int y, bool interior)
bool LocalMap::isPositionExplored (float nX, float nY, int x, int y)
{
const MapSegment& segment = mSegments[std::make_pair(x, y)];
if (!segment.mFogOfWarImage)

@ -99,7 +99,7 @@ namespace MWRender
/**
* Check if a given position is explored by the player (i.e. not obscured by fog of war)
*/
bool isPositionExplored (float nX, float nY, int x, int y, bool interior);
bool isPositionExplored (float nX, float nY, int x, int y);
osg::Group* getRoot();

Loading…
Cancel
Save