Skip to content

Commit

Permalink
Tools/MMaps: Fixed loading .map files
Browse files Browse the repository at this point in the history
  • Loading branch information
Zedron committed May 15, 2015
1 parent 554e657 commit 45070e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/mmaps_generator/TerrainBuilder.cpp
Expand Up @@ -80,7 +80,7 @@ struct map_liquidHeader
namespace MMAP
{

char const* MAP_VERSION_MAGIC = "v1.4";
char const* MAP_VERSION_MAGIC = "v1.5";

TerrainBuilder::TerrainBuilder(bool skipLiquid) : m_skipLiquid (skipLiquid){ }
TerrainBuilder::~TerrainBuilder() { }
Expand Down Expand Up @@ -134,7 +134,7 @@ namespace MMAP
bool TerrainBuilder::loadMap(uint32 mapID, uint32 tileX, uint32 tileY, MeshData &meshData, Spot portion)
{
char mapFileName[255];
sprintf(mapFileName, "maps/%03u%02u%02u.map", mapID, tileY, tileX);
sprintf(mapFileName, "maps/%04u_%02u_%02u.map", mapID, tileY, tileX);

FILE* mapFile = fopen(mapFileName, "rb");
if (!mapFile)
Expand Down

3 comments on commit 45070e0

@burnham
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it need new map extraction?

@Zedron
Copy link
Contributor Author

@Zedron Zedron commented on 45070e0 May 17, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, only mmap generation

@burnham
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for answering,

Please sign in to comment.