mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-27 01:06:19 +00:00
Changed: #825 Remove all warnings when compiling Ryzom
This commit is contained in:
parent
53646d6444
commit
478b3ec42a
4 changed files with 14 additions and 14 deletions
|
@ -193,7 +193,7 @@ static void processProximityBuffer(const TBuffer& inputBuffer, uint32 lineLength
|
|||
const uint32 bigValue= 15*5;
|
||||
|
||||
// determine numer of lines in the buffer...
|
||||
uint32 numLines= inputBuffer.size()/ lineLength;
|
||||
uint32 numLines= (uint32)inputBuffer.size()/ lineLength;
|
||||
|
||||
// clear out the result buffer and reset all values to 5*255, remembering that this is the correct value for the image edges
|
||||
resultBuffer.clear();
|
||||
|
@ -561,7 +561,7 @@ void CProximityMapBuffer::generateZoneProximityMap(const CProximityZone& zone,TB
|
|||
|
||||
// setup the buffer's accessible points and prime vects[0] with the set of accessible points in the zone buffer
|
||||
_prepareBufferForZoneProximityMap(zone,zoneBuffer,vects[0]);
|
||||
entriesToTreat= vects[0].size();
|
||||
entriesToTreat= (uint32)vects[0].size();
|
||||
|
||||
// lookup the buffer dimentions
|
||||
uint32 zoneWidth= zone.getZoneWidth();
|
||||
|
@ -631,7 +631,7 @@ void CProximityMapBuffer::generateZoneProximityMap(const CProximityZone& zone,TB
|
|||
}
|
||||
|
||||
// clear out the vector
|
||||
entriesToTreat-= vect.size();
|
||||
entriesToTreat-= (uint32)vect.size();
|
||||
vect.clear();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@ static void getIslandsInside(sint32 xmin, sint32 xmax, sint32 ymin, sint32 ymax,
|
|||
{
|
||||
dest.clear();
|
||||
R2::CScenarioEntryPoints &sep = R2::CScenarioEntryPoints::getInstance();
|
||||
uint numIslands = sep.getCompleteIslands().size();
|
||||
uint numIslands = (uint)sep.getCompleteIslands().size();
|
||||
for(uint l = 0; l < numIslands; ++l)
|
||||
{
|
||||
const R2::CScenarioEntryPoints::CCompleteIsland &ci = sep.getCompleteIslands()[l];
|
||||
|
@ -129,7 +129,7 @@ int main(int argc, char* argv[])
|
|||
CPackedWorldBuilder builder;
|
||||
std::vector<CPackedWorldSmartPtr> islands;
|
||||
std::vector<CVector> startPositions;
|
||||
uint numIslands = sep.getCompleteIslands().size();
|
||||
uint numIslands = (uint)sep.getCompleteIslands().size();
|
||||
//
|
||||
for(uint k = 0; k < numIslands; ++k)
|
||||
{
|
||||
|
@ -168,13 +168,13 @@ int main(int argc, char* argv[])
|
|||
// now, see which zones really should be found in that island
|
||||
std::vector<std::string> presentZoneNames;
|
||||
std::vector<std::string> presentZonePathes;
|
||||
for(uint k = 0; k < zoneNames.size(); ++k)
|
||||
for(uint l = 0; l < zoneNames.size(); ++l)
|
||||
{
|
||||
std::string zonePath = CPath::lookup(zoneNames[k], false, false);
|
||||
std::string zonePath = CPath::lookup(zoneNames[l], false, false);
|
||||
if (!zonePath.empty())
|
||||
{
|
||||
presentZonePathes.push_back(zonePath);
|
||||
presentZoneNames.push_back(toLower(zoneNames[k]));
|
||||
presentZoneNames.push_back(toLower(zoneNames[l]));
|
||||
}
|
||||
}
|
||||
//
|
||||
|
@ -187,9 +187,9 @@ int main(int argc, char* argv[])
|
|||
// the same zones were found -> now check their dates against the island one
|
||||
uint32 packedIslandDate = CFile::getFileModificationDate(islandPath);
|
||||
mustRebuild = false;
|
||||
for(uint k = 0; k < presentZonePathes.size(); ++k)
|
||||
for(uint l = 0; l < presentZonePathes.size(); ++l)
|
||||
{
|
||||
if (CFile::getFileModificationDate(presentZonePathes[k]) > packedIslandDate)
|
||||
if (CFile::getFileModificationDate(presentZonePathes[l]) > packedIslandDate)
|
||||
{
|
||||
mustRebuild = true;
|
||||
}
|
||||
|
|
|
@ -60,7 +60,7 @@ void CBuilderConfig::build(NLMISC::CConfigFile &cf)
|
|||
if (searchPathsVar)
|
||||
{
|
||||
SearchPaths.resize(searchPathsVar->size());
|
||||
for(sint k = 0; k < searchPathsVar->size(); ++k)
|
||||
for(sint k = 0; k < (sint)searchPathsVar->size(); ++k)
|
||||
{
|
||||
SearchPaths[k] = searchPathsVar->asString(k);
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ void CBuilderConfig::build(NLMISC::CConfigFile &cf)
|
|||
if (cwMapListVar)
|
||||
{
|
||||
CWMapList.resize(cwMapListVar->size());
|
||||
for(sint k = 0; k < cwMapListVar->size(); ++k)
|
||||
for(sint k = 0; k < (sint)cwMapListVar->size(); ++k)
|
||||
{
|
||||
CWMapList[k] = cwMapListVar->asString(k);
|
||||
}
|
||||
|
|
|
@ -563,14 +563,14 @@ void CPackedWorldBuilder::fly(std::vector<CIslandInfo> &islands, float camSpeed
|
|||
bool interFound = islands[currWorldIndex].PW->raytrace(camMat.getPos(), lookAtPos, inter, &triList);
|
||||
if (!triList.empty())
|
||||
{
|
||||
vb.setNumVertices(3 * triList.size());
|
||||
vb.setNumVertices(3 * (uint32)triList.size());
|
||||
CVertexBufferReadWrite vba;
|
||||
vb.lock(vba);
|
||||
CVector *dest = vba.getVertexCoordPointer(0);
|
||||
memcpy(dest, &triList[0], sizeof(CTriangle) * triList.size());
|
||||
vba.unlock();
|
||||
driver->activeVertexBuffer(vb);
|
||||
driver->renderRawTriangles(material, 0, triList.size());
|
||||
driver->renderRawTriangles(material, 0, (uint32)triList.size());
|
||||
}
|
||||
if (interFound)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue