Remove unused argument

coverity_scan
scrawl 9 years ago
parent 4690fd3f22
commit ca4e859f61

@ -269,8 +269,6 @@ namespace MWGui
// normalized cell coordinates // normalized cell coordinates
float nX,nY; float nX,nY;
markerPos.interior = mInterior;
if (!mInterior) if (!mInterior)
{ {
int cellX, cellY; int cellX, cellY;
@ -1078,7 +1076,7 @@ namespace MWGui
{ {
if (!mLocalMapRender) if (!mLocalMapRender)
return true; 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) MarkerUserData(MWRender::LocalMap* map)
: mLocalMapRender(map) : mLocalMapRender(map)
, interior(false)
, cellX(0) , cellX(0)
, cellY(0) , cellY(0)
, nX(0.f) , nX(0.f)
@ -89,7 +88,6 @@ namespace MWGui
bool isPositionExplored() const; bool isPositionExplored() const;
MWRender::LocalMap* mLocalMapRender; MWRender::LocalMap* mLocalMapRender;
bool interior;
int cellX; int cellX;
int cellY; int cellY;
float nX; float nX;

@ -478,7 +478,7 @@ osg::Vec2f LocalMap::interiorMapToWorldPosition (float nX, float nY, int x, int
return pos; 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)]; const MapSegment& segment = mSegments[std::make_pair(x, y)];
if (!segment.mFogOfWarImage) 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) * 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(); osg::Group* getRoot();

Loading…
Cancel
Save