mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 16:20:21 +00:00
Remove redundant MapSegment constructor and destructor
This commit is contained in:
parent
d927aaad14
commit
b2f7fc70a6
@ -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…
x
Reference in New Issue
Block a user