mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-25 05:32:53 +00:00
Build fixes
This was SVN commit r9100.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user