1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-08 22:26:51 +02:00

Remove no longer used map checksum computation

This commit is contained in:
Ivan Savenko
2025-01-20 11:09:37 +00:00
parent 2ee5f2df02
commit e4505f20b9
3 changed files with 0 additions and 15 deletions

View File

@@ -178,7 +178,6 @@ EDiggingStatus TerrainTile::getDiggingStatus(const bool excludeTop) const
CMap::CMap(IGameCallback * cb)
: GameCallbackHolder(cb)
, checksum(0)
, grailPos(-1, -1, -1)
, grailRadius(0)
, waterMap(false)

View File

@@ -137,7 +137,6 @@ public:
void reindexObjects();
ui32 checksum;
std::vector<Rumor> rumors;
std::vector<DisposedHero> disposedHeroes;
std::vector<ConstTransitivePtr<CGHeroInstance> > predefinedHeroes;

View File

@@ -92,19 +92,6 @@ std::unique_ptr<CMapHeader> CMapLoaderH3M::loadMapHeader()
void CMapLoaderH3M::init()
{
//TODO: get rid of double input process
si64 temp_size = inputStream->getSize();
inputStream->seek(0);
auto * temp_buffer = new ui8[temp_size];
inputStream->read(temp_buffer, temp_size);
// Compute checksum
boost::crc_32_type result;
result.process_bytes(temp_buffer, temp_size);
map->checksum = result.checksum();
delete[] temp_buffer;
inputStream->seek(0);
readHeader();