mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-12 05:27:04 +03:00
Remove redundant MapSegment constructor and destructor
This commit is contained in:
parent
d927aaad14
commit
b2f7fc70a6
2 changed files with 1 additions and 10 deletions
|
@ -571,11 +571,6 @@ namespace MWRender
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LocalMap::MapSegment::MapSegment()
|
|
||||||
: mHasFogState(false)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void LocalMap::MapSegment::createFogOfWarTexture()
|
void LocalMap::MapSegment::createFogOfWarTexture()
|
||||||
{
|
{
|
||||||
if (mFogOfWarTexture)
|
if (mFogOfWarTexture)
|
||||||
|
|
|
@ -109,9 +109,6 @@ namespace MWRender
|
||||||
|
|
||||||
struct MapSegment
|
struct MapSegment
|
||||||
{
|
{
|
||||||
MapSegment();
|
|
||||||
~MapSegment() = default;
|
|
||||||
|
|
||||||
void initFogOfWar();
|
void initFogOfWar();
|
||||||
void loadFogOfWar(const ESM::FogTexture& fog);
|
void loadFogOfWar(const ESM::FogTexture& fog);
|
||||||
void saveFogOfWar(ESM::FogTexture& fog) const;
|
void saveFogOfWar(ESM::FogTexture& fog) const;
|
||||||
|
@ -122,8 +119,7 @@ namespace MWRender
|
||||||
osg::ref_ptr<osg::Image> mFogOfWarImage;
|
osg::ref_ptr<osg::Image> mFogOfWarImage;
|
||||||
|
|
||||||
bool needUpdate = true;
|
bool needUpdate = true;
|
||||||
|
bool mHasFogState = false;
|
||||||
bool mHasFogState;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::map<std::pair<int, int>, MapSegment> SegmentMap;
|
typedef std::map<std::pair<int, int>, MapSegment> SegmentMap;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue