Remove redundant MapSegment constructor and destructor

simplify_debugging
elsid 2 years ago
parent d927aaad14
commit b2f7fc70a6
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -571,11 +571,6 @@ namespace MWRender
}
}
LocalMap::MapSegment::MapSegment()
: mHasFogState(false)
{
}
void LocalMap::MapSegment::createFogOfWarTexture()
{
if (mFogOfWarTexture)

@ -109,9 +109,6 @@ namespace MWRender
struct MapSegment
{
MapSegment();
~MapSegment() = default;
void initFogOfWar();
void loadFogOfWar(const ESM::FogTexture& fog);
void saveFogOfWar(ESM::FogTexture& fog) const;
@ -122,8 +119,7 @@ namespace MWRender
osg::ref_ptr<osg::Image> mFogOfWarImage;
bool needUpdate = true;
bool mHasFogState;
bool mHasFogState = false;
};
typedef std::map<std::pair<int, int>, MapSegment> SegmentMap;

Loading…
Cancel
Save