1
0
forked from 0ad/0ad

Build fixes

This was SVN commit r9100.
This commit is contained in:
Ykkrosh 2011-03-22 18:46:39 +00:00
parent 5565b9e898
commit c4cd85bb98
3 changed files with 5 additions and 7 deletions

View File

@ -299,7 +299,6 @@ Map.prototype.getMapData = function()
textureNames.push(name);
data["textureNames"] = textureNames;
data["numTextures"] = textureNames.length;
// Convert 2D tile data to flat array, reodering into patches as expected by MapReader
var tiles = new Array(size*size);

View File

@ -1099,21 +1099,20 @@ int CMapReader::ParseTerrain()
#define GET_TERRAIN_PROPERTY(prop, out)\
if (!pSimulation2->GetScriptInterface().GetProperty(m_MapData.get(), #prop, out))\
LOGERROR(L"CMapReader::ParseTerrain() failed to get '%hs' property", #prop);\
LOGERROR(L"CMapReader::ParseTerrain() failed to get '%hs' property", #prop);
size_t size;
int size;
GET_TERRAIN_PROPERTY(size, size)
m_PatchesPerSide = size / PATCH_SIZE;
// flat heightmap of u16 data
GET_TERRAIN_PROPERTY(height, m_Heightmap)
// load textures
GET_TERRAIN_PROPERTY(numTextures, num_terrain_tex)
std::vector<std::string> textureNames;
GET_TERRAIN_PROPERTY(textureNames, textureNames)
num_terrain_tex = textureNames.size();
while (cur_terrain_tex < num_terrain_tex)
{

View File

@ -25,7 +25,7 @@
// stub implementations
LibError dir_watch_Add(const fs::wpath& UNUSED(path), PDirWatch& UNUSED(dirWatch))
LibError dir_watch_Add(const NativePath& UNUSED(path), PDirWatch& UNUSED(dirWatch))
{
return INFO::OK;
}